How i can crop image with bw roipoly and how to display?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Riventus AHA
le 30 Jan 2017
Réponse apportée : Takuji Fukumoto
le 31 Jan 2017
clc;clear;close all;
a = imread('Capture1.png','png'); figure, imshow(a), title(' bearing pompa Tanggal 9 Agustus'); I=uint8(a); h = impoly; position = wait(h); BW = createMask(h); out = gray .* uint8(BW); imshow(out);

why always display like this when i was done with decission of my cropping position? anyone can help me to solve this problem?
Thank you so much :)
0 commentaires
Réponse acceptée
Takuji Fukumoto
le 31 Jan 2017
If you want to show the segmented image, please try this after creating mask.
out = rgb2gray(I);
out(~BW) =0;
imshow(out);
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Denoising and Compression dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!