Integral Histogram Errors
in
Contributed Library Questions
•
1 year ago
I have installed the IntegralHistogram library by Giovanni Tarducci and Alessio Barducci (Info here:
http://inthistogram.altervista.org) and successfully ran the example "Image_ImgOutput" which writes the results into an output image.
However, when I try to run "Image_FileOutput", which as far as I understand, is supposed to write the results in an XML file, the program stops at the following line with a NullPointerException:
- test.imageSearch(targetImg);
The full code of the example can be found here:
http://inthistogram.altervista.org/examples/Image_FileOutput/Image_FileOutput.pde
The error message displayed in the console is as follows:
an error occurred while attempting to open the fileException in thread "Animation Thread" java.lang.NullPointerExceptionat integralhistogram.XMLSearchOut.startOutput(Unknown Source)at integralhistogram.TargetUser.startOutput(Unknown Source)at integralhistogram.IntHistUser.imageSearch(Unknown Source)at integralhistogram_test1b.setup(integralhistogram_test1b.java:37)at processing.core.PApplet.handleDraw(PApplet.java:1608)at processing.core.PApplet.run(PApplet.java:1530)at java.lang.Thread.run(Thread.java:680)
I am running Processing 1.5.1 on Mac OSX Lion. Any help would be appreciated on running this library properly.
1