Effacer les filtres
Effacer les filtres

find maximum and minimum value from a segmented portion...

1 vue (au cours des 30 derniers jours)
Elysi Cochin
Elysi Cochin le 20 Mai 2015
Commenté : Elysi Cochin le 20 Mai 2015
i have segmented image... the unwanted portions are replaced by zero...
now i wanted to find the maximum and minimum value of the segmented regions...
but as i have assigned unwanted portions as zero, everytime minimum value comes as zero... but for some images the segmented portion contains value zero, so how to take the minimum and maximum value from the segmented portion only...

Réponse acceptée

Walter Roberson
Walter Roberson le 20 Mai 2015
roi = repmat(binaryImage, [1,1, size(origImage,3)]);
origImage(~roi) = 0;
max(origImage(roi))
min(origImage(roi))

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by