T O P I C R E V I E W |
b.robertson |
Posted - 06/27/2011 : 04:51:54 AM I am a new user of OriginPro 8.5 and I need a quick and easy way to find the maximum value in a matrix which represents an image. Any ideas? Thanks. |
1 L A T E S T R E P L I E S (Newest First) |
greg |
Posted - 06/27/2011 : 5:10:03 PM Suppose I have two images in MBook1 in Matrixsheets "Capture1" and "Flowers". This script gets those values:
range rm1 = [MBook1]Capture1!1; range rm2 = [MBook1]Flowers!1; stats rm1; stats.max=; stats rm2; stats.max=;
Note that if the image is RGB, you will get back an RGB value, otherwise you get an N-bit gray scale value.
Not using a script, you would have to use Analysis : Histogram, then: For gray scale images, you would have to find the last row for which Histogram Master is non-zero. For RGB you can do the same per channel.
|
|
|