Delete selected image in 2D array imtool
显示 更早的评论
Hello,
below is the values in my 2D array represented using imtool. Is there a way to select one of the curve to be deleted but keep the rest the same (index and values of the curve that is not deleted the same). I need to do some calculations on one curve at a time without having the other curve values influence the calculation. Is there a way? Thanks so much.

7 个评论
Jon
2023-11-1
Please attach an example array. How do you identify the set of points that correspond to a curve?
DB
2023-11-1
Jon
2023-11-1
Looks like the "curves" are made up of the points with negative values. Do you already have an algorithm for distinguishing the points that are in each individual curve?
Actually, looking closer I see that the boundaries of the "curves" are the negative values, but the "curves" have some width. For example on the right hand edge we have a negative pixel at (48,168), but also one a little below that at (52,168). So what exactly do you mean by removing a curve? Is it all the pixels included between the boundaries as well as the boundary pixels?
In any case, how do you propose to identify the points that are in one "curve" from the points that are in the other "curve". Easy to see with the human eye, but what will you algorithm be?
DB
2023-11-1
Jon
2023-11-2
Is the situation always quite similar to the one shown in the example image, that is, two similarly shaped "curves" with one translated vertically relative to the other?
DB
2023-11-2
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!