The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum
 Origin Forum
 Maximum value in a matrix

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

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.

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000