How to get Pixels on two circles with radii R and R' for an image with angles 0, 45, 90, 135, 180, 225, 270, 315, 360.Extented local Binary Pattern(ELBP)

1 次查看(过去 30 天)
How to get Pixels on two circles with radii R and R' for an image with angles 0, 45, 90, 135, 180, 225, 270, 315, 360.Extented local Binary Pattern(ELBP)

采纳的回答

Image Analyst
Image Analyst 2018-1-6
Well, you know the formulas, don't you
x = xCenter + r * cosd(theta)
y = yCenter + r * sind(theta)
and so on. So where are you having trouble? Just round it to get the columns and rows
column = round(x);
row = round(y);
pixelValue = yourImage(row, column);
I'm attaching my LBP demo.
  6 个评论
Rashmi.D Jeya kumar
R=2;%radius
Angles = [0, 45, 90, 135, 180, 225, 270, 315, 360];
x = R*cos(Angles*pi/180) ;
y = R*cos(Angles*pi/180)
column = round(x);
row = round(y);
pixelValue = grayImage(row, column);
explain in detail sir it is not working to find pixel values for particular angle in circle with radius R of an image

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Feature Detection and Extraction 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by