rajeshnarasimha / lire

Automatically exported from code.google.com/p/lire
Other
0 stars 0 forks source link

Bug Report - Lire-0.9.4_beta - Class - ColorLayoutImpl #6

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
in function createShape()
Line 193: int[] pixel = {0, 0, 0};

If the input image with alpha channel
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 3
    at java.awt.image.ComponentSampleModel.getPixel(Unknown Source)
    at java.awt.image.Raster.getPixel(Unknown Source)
    at net.semanticmetadata.lire.imageanalysis.mpeg7.ColorLayoutImpl.createShape(ColorLayoutImpl.java:196)

Suggestion:
int[] pixel = {0, 0, 0, 0};

Original issue reported on code.google.com by tsa...@gmail.com on 1 Aug 2013 at 2:15