NOTICE! This is a static HTML version of a legacy Fiji BugZilla bug.

The Fiji project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Bug 739 - Bug in the Threshold / Color Threshold
Bug in the Threshold / Color Threshold
Status: RESOLVED INVALID
Product: Fiji
Classification: Unclassified
Component: ImageJ2
unspecified
Macintosh Mac OS
: P5 critical
Assigned To: ImageJ Developers Mailing List
Depends on:
Blocks:
 
Reported: 2014-05-03 05:41 CDT by FP
Modified: 2014-05-03 11:18 CDT
1 user (show)

See Also:


Attachments
Bug in Threshold / Color Threshold (35.84 KB, text/plain)
2014-05-03 05:41 CDT, FP
Result Expected (918.67 KB, image/jpeg)
2014-05-03 10:39 CDT, FP

Description FP 2014-05-03 05:41:34 CDT
Created attachment 147
Bug in Threshold / Color Threshold

Dear Sir,

After the update for the version ImageJ 1.45v I can't anymore do my work in the Fiji, because the Threshold is totally different. 

I have a Macro, for my work, and after the update I can't anymore use it because the level of threshold is totally different. I try my work in another PC ( ImageJ2) without         the actual updates and the threshold work as I expected.

I'm using the Macro for remove the black areas (like the image in attach) and I use the macro (in attach) and don't work anymore like as I expected.
Comment 1 G. Landini 2014-05-03 08:24:25 CDT
I do not think this has to do with Threshold Color because the macro does not use the Threshold Color plugin at all, but only the macro the plugin generated.

I run the submitted attachment in Fiji jar version 1.48v and IJ1 1.49a9 and the result is exactly the same using the Clown image.

To be able to see what is the problem, please provide an example of what you get and what you should get.
Comment 2 FP 2014-05-03 10:39:09 CDT
Created attachment 148
Result Expected
Comment 3 FP 2014-05-03 10:39:54 CDT
Comment on attachment 148
Result Expected

Dear Sir,

The Macro was developed by the Sir. Daniel Sage at EPFL (Switzerland) and it worked very well before the update. The Macro, removed the black areas from the image and done me a new image without the black areas.


I don't know, but doesn't work anymore.

I send you the image without the black areas, like I expected.
Comment 4 G. Landini 2014-05-03 11:18:58 CDT
I think that there are 2 issues here.

1) The macro you uploaded produces a binary image. I am almost sure that is the automatically generated macro by the Colour Threshold plugin except the first line and the last line.

You uploaded a very faint RGB image as the "expected result".
If I run the macro, I get a whole black image and the result is, I believe, what is expected as it stops the Brightness values between 87 and 255. Since the image you provided has no "black" (i.e. Brightness <87), the thresholding will find no pixels and the result is all black (as expected, i.e. no black regions that should appear white).


2) If the macro were to "delete" black areas, the code should do something more with the regions found to be black (i.e. "white" after running the macro).
Are you sure that you have not deleted part of it?
 
I think that to delete black regions perhaps the result of the thresholding should be added to the original image, but this is me just guessing.

I do not see any bug in the code in ImageJ1 and the macro as is produces the same result in IJ1 and Fiji.

I will resolve this as "invalid" bug. Please reopen this bug if you can provide the examples suggested above where the same image produces different results in different platforms.