how to return array of images from a function

1 vue (au cours des 30 derniers jours)
Zeinab Abd ElMonam
Zeinab Abd ElMonam le 24 Fév 2016
Réponse apportée : Binu le 24 Fév 2016
hi i have a function that take an image and segment this image into many images and i want to return all of these images to use them in another function can any one help thank you .
  1 commentaire
Stephen23
Stephen23 le 24 Fév 2016
Simply put them into a cell array and return the cell array.

Connectez-vous pour commenter.

Réponses (2)

Image Analyst
Image Analyst le 24 Fév 2016
Perhaps code for that in the FAQ will help.

Binu
Binu le 24 Fév 2016
Try bwlabel(2D) or bwlabeln(3D or higher). Each segmented chunk will be assigned a number label. It returns the label matrix that contains labels for 8 or 24 connected components.
function BW = segmentImages(Image) out = segment(Image); % your segmentation function BW = bwlabel(out); end

Catégories

En savoir plus sur Get Started with MATLAB 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!

Translated by