how to return array of images from a function
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentar
Antworten (2)
Binu
am 24 Feb. 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
0 Kommentare
Siehe auch
Kategorien
Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!