Colour analyzing soft for Mac

Paul C. Grimm grimm at cc.umanitoba.ca
Tue Apr 29 15:28:27 EST 1997


Takuya Maemoto wrote:
> 
> Dear News Readers,
> 
> Does anybody know how to measure the particular colour in a picture?
>
> 
> I think NIH Image can do some measurement with gray pictures using
> density slice function, but not with colour pics.
NIH image can do colour through 2 methods. One check out colorimage...a
port that gives it some capability on an older version (check the NIH
image home page.)
What I do is to take advantage of the fact that NIH image works in 256
colours. You can write a macro that will allow the computer to capture
the image select the colours that your interested it and give you
measurements on it such as the surface area.
In the following example the computer selects all fairly dark shades of
red and measures the surface area.
_____
macro 'AEC Stain Area [ ]-rhamm Pat';
{captures image from built in AV frame grabber, kills the pixels in the
first 2 columns (frame grabber static), sets the scale in µM, looks for
the  red areas which are positive in AEC stained sections, converts the
pixels into a new red not seen on the microscope slides and sends the
area into the results box as a percentage of the total area.  Total area
of the measurement using the 40X objective is 0.076 square mM, or 76,000
square µM....set the illuminaton at just over 5.5 and set the substage
diaphragm to around 0.7}
begin
capture;
MakeRoi(0,0,2,240);
Clear;
KillRoi;
setscale(27.713,'%',1);
changevalues(16,19,35);
changevalues(22,34,35);
changevalues(54,54,35);
changevalues(57,57,35);
changevalues(59,71,35);
changevalues(96,106,35);
changevalues(141,143,35);
changevalues(179,179,35);
changevalues(216,221,35);
  SetDensitySlice(35,35);
wait(.1);
measure;
disposeall;
startcapturing;
end;

macro 'setup for aec image analysis [s]';
{sets a number of the variables that need to be set for the image
analysis to work properly}
begin
setoptions('area');
setpalette('system palette');
{setvideo('8-bit color','full','ntsc');}
startcapturing;
setscale(2.18,'µm',1);
end;

-- 
Paul C. Grimm MD
Assoc. Prof. Pediatrics & Immunology
University of Manitoba
Winnipeg Man, Canada
R3A 1S1

"Having a smoking section in a restaurant is like
 having a peeing section in a swimming pool!"




More information about the Bio-soft mailing list