Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ArrayIndexOutOfBoundsException on resize using triangle filter #165

Open
Amooti opened this issue Jun 25, 2019 · 0 comments
Open

ArrayIndexOutOfBoundsException on resize using triangle filter #165

Amooti opened this issue Jun 25, 2019 · 0 comments

Comments

@Amooti
Copy link

@Amooti Amooti commented Jun 25, 2019

Using the following code in the 1.3.8 release:

final FImage fImage = ImageUtilities.createFImage(image);
fImage.processInplace(new ResizeProcessor(width, height, false, TriangleFilter.INSTANCE));
return ImageUtilities.createBufferedImage(fImage);

I get a the following exception:

java.lang.ArrayIndexOutOfBoundsException: 93
    at org.openimaj.image.processing.resize.ResizeProcessor.zoom(ResizeProcessor.java:900)
    at org.openimaj.image.processing.resize.ResizeProcessor.zoomInplace(ResizeProcessor.java:817)
    at org.openimaj.image.processing.resize.ResizeProcessor.processImage(ResizeProcessor.java:296)
    at org.openimaj.image.processing.resize.ResizeProcessor.processImage(ResizeProcessor.java:51)
    at org.openimaj.image.SingleBandImage.processInplace(SingleBandImage.java:206)
    ...

This only happens with the TriangleFilter. I've attached an example image causing this error.

problem-image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant