}
}
@Test
public void testArtifact() throws IOException{
TIFFImageReaderSpi spi = new TIFFImageReaderSpi();
File file = TestData.file(this, "filter.tif");
ImageReader reader = null;
FileImageInputStream fis = null;
try {
fis = new FileImageInputStream(file);
reader = spi.createReaderInstance();
reader.setInput(fis);
RenderedImage image = reader.read(0);
RenderedOp histogramOp = HistogramDescriptor.create(image, null, Integer.valueOf(1), Integer.valueOf(1), new int[]{256}, null, null, null);
Histogram histogram = (Histogram) histogramOp.getProperty("histogram");
int[][] bins = histogram.getBins();