Login  Register

Re: test cases

Posted by Michael Schmid on Jul 31, 2014; 9:20am
URL: http://imagej.273.s1.nabble.com/test-cases-tp5008981p5008993.html

Hi Gabriel,

one problem is the 'blobs.gif' file - if ImageJ opens that from ImageJ/samples/blobs.gif via an 'open' command, the image has no inverted LUT (as it should have) but the same appearance, thus different pixel values. In that case you get 'fail' messages for every test.

If it opens 'blobs.gif it via File>Open Samples, it has the correct LUT and pixel values.
Thus, in the macro, you should have the 'blobsFile' variable not pointing at the location where it can fine 'blobs.gif'. As we have the possibility of caching sample images in ImageJ now, the macro code to directly read the image is obsolete anyhow.

Apart from that problem, I got no error, neither with 1.49e1 nor with 1.49e12.
(OS X 10.6.8, Java 1.6.0_65 [64-bit])

Your other error message looks strange:
> FAIL: Smooth:   type=8bit select=all nThreads=1, single image: mean=63.34
> expected=62.8975


This means that the simple "Smooth" command does something wrong on your machine!

Process>Smooth should have exactly the same result as Process>Filters>Mean with a radius of 1 pixel, but it uses the ImageProcessor's 'smooth' method instead of the RankFilters.

Could you please try the two commands and see whether there is any difference between the results, and if so, what went wrong?

Michael
________________________________________________________________
On Jul 31, 2014, at 10:46, Gabriel Landini wrote:

> On Wednesday 30 Jul 2014 18:33:19 Michael Schmid wrote:
>
>> there are at least two macros used for testing whether various ImageJ
>> functions behave properly. I guess that Wayne applies them for all new
>> versions of ImageJ.
>>
>>  http://rsb.info.nih.gov/ij/macros/RegressionTests.txt
>>
>> This macro makes a lot of tests of the macro language and also calls the
>> second one,
>>
>>  http://rsb.info.nih.gov/ij/macros/FilterTester.txt
>
> Do these run OK in your machine?
>
> Hm... I get *lots* of FAIL...
> Are there any options settings that need to be set by default?
> I even renamed my StartupMacros.txt file to see if that was the case and some
> FAIL do not appear anymore, but there still *many* in the Smooth, Mean,
> Gaussian blur and many other filters.
>
> Occasionally there is one window popping up saying '"Conver Stack to Images"
> requires a stack' but there is a HSB stack at the forefront...
>
> I wonder it this has to do with the blobs.gif image that had the wrong LUT and
> corrected no so long ago.
> If I remove the Samples folder the fails do not show up, but I still get one
>
> FAIL: Smooth:   type=8bit select=all nThreads=1, single image: mean=63.34
> expected=62.8975
>
> I also get at popup:
> FilterTester -Stopped on Fail
> NOTE:
> Options>Memory&Threads may be changed
>
> I am using 1.49e12 under linux with Oracle Java 1.6,0_35.
> I also tried 1.49d.
> Cheers
>
> Gabriel
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html