how to use regionprops to change pixel value and affect original image simultaneously?

2 ビュー (過去 30 日間)
Andy Sung
Andy Sung 2020 年 4 月 29 日
回答済み: SaiDileep Kola 2020 年 5 月 8 日
I have a binary image of cells.
By using regionprops, I can view different cell imgae by s(k).Image.
I modify some pixel value in specific s(k).Image and then I use imshow to see the original image to check if the image is changed.
But I find that the pixel value of position that I changed by s(k).Image has not been changed in the original image.
How can I process the image by s(k).Image and affect the original image simultaneously?
s = regionprops(BW,{'Image'});
s(1).Image(12,17)=0;
imshow(BW)

回答 (1 件)

SaiDileep Kola
SaiDileep Kola 2020 年 5 月 8 日
You can get some idea by looking at help center

カテゴリ

Help Center および File ExchangeImage Segmentation and Analysis についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by