Creating and finding pixel values within a bounding box of an RGB image.
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi I am looking to create a bounding box for a region of an RGB images.
I have tried things such as impoly and regionprops, both which are getting me excatly what i need, or maybe im going about it the wrong way.
I basically what the create a function where for a specific region > using a bounding box to select this area, tell me all the values of the pixels in the red, green and blue channels then the variance of them individually.
Can anyone provided code/knowledge on this approach.
Thanks,
Erin
1 Kommentar
Walter Roberson
am 25 Apr. 2019
When you have a bounding box (which might have been created based upon grayscale or other 2D analysis), you can imcrop() the RGB image by that bounding box. The rest is just indexing and calling var()
Antworten (1)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!