Login  Register

ImageJ 1.53a color threshold macro error (HSB stack)

Posted by Skibinski, Bertram on May 28, 2020; 5:06pm
URL: http://imagej.273.s1.nabble.com/ImageJ-1-53a-color-threshold-macro-error-HSB-stack-tp5023409.html

Dear all,



I am using ImageJ 1.53a and a macro from the official ImageJ database using the color thresholding in HSB color space (https://imagej.nih.gov/ij/macros/Percent_Green.txt 1) reports an error on “supported conversion” if executed. It has to be noted here, that the macro “Percent_Green.txt” was developed in ImageJ 1.49m. I want to use this macro in my own project as well, that I do not go into detail at this point as it adds no value to the overall discussion.  Details on how to reproduce the error and the respective error report are given below. Could you please help me to successfully execute the task given in the “Percent_Green.txt” macro in ImageJ 1.53a?



You can reproduce the error by executing the macro from “Percent_Green.txt” (see link above) using the following TIF file: https://upload.wikimedia.org/wikipedia/commons/9/93/White_House_lawn_(1).tif



The error report is as follows:

----

Name * Value

Memory * 297MB of 3072MB (9%)

nImages() 1

getTitle() “White_House_lawn_(1).tiff”

min array[3]

max array[3]

filter array[3]

a “White_House_lawn_(1).tiff”



Error: Supported Conversions:



8-bit -> 16-bit*

8-bit -> 32-bit*

8-bit -> RGB Color*

16-bit -> 8-bit*

16-bit -> 32-bit*

16-bit -> RGB Color*

32-bit -> 8-bit*

32-bit -> 16-bit

32-bit -> RGB Color*

8-bit Color -> 8-bit (grayscale)*

8-bit Color -> RGB Color

RGB -> 8-bit (grayscale)*

RGB -> 8-bit Color*

RGB -> RGB Stack*

RGB -> HSB Stack*

RGB -> Lab Stack

RGB Stack -> RGB Color

HSB Stack -> RGB Color



works with stacks

in line 31:

  run ( "HSB Stack" <)> ;





Best regards,  Bertram

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