Obtaining the pixel values within an ROI
7 ビュー (過去 30 日間)
古いコメントを表示
Meghana Balasubramanian
2020 年 1 月 17 日
コメント済み: Meghana Balasubramanian
2020 年 1 月 20 日
Hello,
I have an image where the object of interest is curved and I would like to linearize it. To do that, I thought I could read the pixel values between the region created by (x1, y1), (x2, y2) and (a1, b1), (a2, b2) and reposition them in a linear manner. Assume that the x & y coordinates refer to the red line and a & b refer to the yellow. The ROI is the area in white.
I am not aware of how I could go about this.
Thank you, in advance
0 件のコメント
採用された回答
KSSV
2020 年 1 月 17 日
As you have the coordinates for the boundary, use inpolygon and get the locations of the points lying inside the clsoed region......with these indices, you can get your pixel values. Read about inpolygon.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Image Segmentation and Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!