The question is to plot the intensity profile of pixels along the middle row of an image.
4 ビュー (過去 30 日間)
古いコメントを表示
Abhinandan Hazarika
2017 年 8 月 19 日
コメント済み: Abhinandan Hazarika
2017 年 8 月 20 日
I am unable to find the middle row's first and last coordinates of the image and I want to do automatically not manually entering the coordinates.I have attached the image for which I have to find intensity profile.Could you help..
0 件のコメント
採用された回答
Image Analyst
2017 年 8 月 19 日
Try this:
% Get size of image:
[rows, columns, numberOfColorChannels] = size(yourImage);
middleRow = round(rows/2)
x = 1 : columns;
plot(x, middleRow, 'b-', 'LineWidth', 2);
grid on;
xlabel('Column', 'FontSize', 15);
ylabel('Gray Level', 'FontSize', 15);
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!