Skip to content

Issue with Image downsampling #154

@svandreev

Description

@svandreev

Get division by 0 when downsampling the image that is already of the target size.

Caused by: java.lang.ArithmeticException: / by zero
at org.encog.util.downsample.RGBDownsample.downSampleRegion(RGBDownsample.java:184) ~[encog-core-3.1.0.jar:na]
at org.encog.util.downsample.SimpleIntensityDownsample.downSample(SimpleIntensityDownsample.java:74) ~[encog-core-3.1.0.jar:na]
at org.encog.platformspecific.j2se.data.image.ImageMLData.downsample(ImageMLData.java:89) ~[encog-core-3.1.0.jar:na]
at org.encog.platformspecific.j2se.data.image.ImageMLDataSet.downsample(ImageMLDataSet.java:125) ~[encog-core-3.1.0.jar:na]
at model.net.Trainer$.train(Trainer.scala:20) ~[na:na]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions