Finding out number of pixels in white area in binary image as well as number of pixels of ROI in original image.
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Hello, I have segmented image in which my region of interest (ROI) was white color cotton. Now I want to compare the number of pixels in segmented area i.e. total number of pixels in white blob in binary image with actual number of pixels of ROI in actual image. How I can do that. Following figure can clear the point.
<<
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/166655/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/166656/image.jpeg)
>>
As we can see from original image, my ROI was white color cotton circled in red boundry. When I segmented this image I got binary image as shown. As we can noticed there are some missing areas in binary image as compare to original area. So, I want to count the number of pixels in original image of ROI and number of pixels of white blob in binary image. So that I can calculate difference in actual pixels of ROI and actual segmented number of pixels.
Thank You.
0 Commenti
Risposte (0)
Vedere anche
Categorie
Scopri di più su Image Processing Toolbox in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!