plot pixel values in circular image
1 次查看(过去 30 天)
显示 更早的评论
回答(1 个)
Image Analyst
2018-5-14
Use sind() and cosd() to create the x and y endpoints of the line, x1,x2,y1,y2. Then call
line([x1,x2], [y1,y2], 'Color', 'k', 'LineWidth', 2)
Sounds like homework, so give it a try yourself. Have a for loop over all angles. Here's a start:
for angle = 1 : 20 : 360
x1 = lineLength * cosd(angle......
line([x1,x2], [y1,y2], 'Color', 'k', 'LineWidth', 2)
hold on;
end
10 个评论
Image Analyst
2018-5-16
See if my copy and paste demo works for you. You can cut out a line, rotate it, and paste it onto a canvass image, if that's what you want to do.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!