|
On Feb 4, 2012, at 2:27 AM, SUBSCRIBE IMAGEJ J Pirayesh wrote:
> Hi everybody
>
> I am studying on 3D gray scale images by ImageJ.I want to rescale the gray scale values of the images, that is shown by pointing in everywhere on the image, to my predefined scale, for example 0-10. Could you please guide me that the program have such an ability, and/or is there a macro or plugin for such a rescaling?
You can rescale an image using a simple macro.
newMax = 10;
getRawStatistics(nPixels, mean, min, max);
run("Subtract...", "value=&min");
scale = newMax/(max-min);
run("Multiply...", "value=&scale");
setMinAndMax(0, newMax);
-wayne
|