|
Hello, pardon the newbie question and thanks for your help in advance. Here is what I would like to do in ImageJ. I have two thresholds, HIGH and LOW and three integer score values score1, score2 and score3. Given an 8-bit image I would like to sum up the scores for each pixel using the following rating system:
1. If the pixel value is between HIGH and 255 the pixel has value score1
2. If the pixel value is between LOW and HIGH the pixel has value score2
3. If the pixel value is below LOW the pixel has value score3
The ultimate goal is to get a single score for the entire image by summing the scores of every pixel. Ideally I would like to calculate the score of an open image without changing the image in any way.
I've implemented a plug-in to do this using Python scripting but it is pretty slow. I've been looking at the changeValues command in the macro language, but that changes the open image. I'm not a Java programmer. Short of writing a compiled Java plug-in, what is the best way for me to proceed? Thanks in advance for any advice that you can give me.
|