MATLAB Answers

red Pixel values in ditinct points

4 views (last 30 days)
fereshte
fereshte on 25 Apr 2014
Commented: Image Analyst on 13 May 2014
I have a separate part of the picture. Had placed the image into a new coordinates. How can I get the red Pixel values in the points of x-y coordinate?

  0 Comments

Sign in to comment.

Answers (1)

Image Analyst
Image Analyst on 25 Apr 2014
See my color segmentation demos in my File Exchange. They do that (find red pixels), though I'm not exactly sure what you mean by "points of x-y coordinate".

  8 Comments

Show 5 older comments
Image Analyst
Image Analyst on 12 May 2014
The 2 means color channel 2, which is green. Here, run this code:
rgbImage = imread('peppers.png');
greenLine20 = rgbImage(20,:,2); % Extract line 20 of the green channel.
meanGreenLine20 = mean(greenLine20); % Get its mean.
Do you get a 512 element long array for greenLine20? And a value of 36.3770 for the mean? If you don't get that for your image, then attach it.
fereshte
fereshte on 13 May 2014
no image size is 47*108. thank you i use other function for this problem.
Image Analyst
Image Analyst on 13 May 2014
Okay, whatever...as long as you got it working.

Sign in to comment.

Sign in to answer this question.