フィルターのクリア

Creating and finding pixel values within a bounding box of an RGB image.

2 ビュー (過去 30 日間)
Erin Browne
Erin Browne 2019 年 4 月 25 日
コメント済み: Walter Roberson 2019 年 4 月 30 日
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 件のコメント
Walter Roberson
Walter Roberson 2019 年 4 月 25 日
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()

サインインしてコメントする。

回答 (1 件)

Erin Browne
Erin Browne 2019 年 4 月 25 日
I think I get you.
Do i greyscale the RGB images and take a bounding box of that?
If so do you know any code for doing that?
  3 件のコメント
Erin Browne
Erin Browne 2019 年 4 月 29 日
Currently I have not developed anything for edge detection as of yet,
the idea was that the change in RGB ratio between neighbouring pixels would indicate whether it is moving over say lagoon water then over corals then into the mangrove. Say the RGB ratio changed from higher in the blue to higher in the red channel this would indicate moving from lagoon water to corals, then higher in the green would be into the mangroves, do you get me?
I also have the distances in relation to how many pixels apart these regions are but I haven't yet been able to create code that can say "if RGB ratio equals (value), seven pixels over the RGB should be (value)"
I hope this makes some clarification?

サインインしてコメントする。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by