sz means in image segmentation
Afficher commentaires plus anciens
img=zeros(sz(1),sz(2));
can someone help me explain about this code?
2 commentaires
Erivelton Gualter
le 19 Nov 2019
what is sz meaning?
Here is a documentation for function zeros: https://www.mathworks.com/help/matlab/ref/zeros.html
nur hanani
le 19 Nov 2019
Réponses (2)
Erivelton Gualter
le 19 Nov 2019
Let's say you have size = [300 400]. So, img is a matrix of zeros with this size. than you might show.
Try the following code:
sz = [300 400];
img=zeros(sz(1),sz(2));
imshow(img)
Image Analyst
le 19 Nov 2019
Before that code, someone probably did
sz = size(yourImage);
1 commentaire
nur hanani
le 19 Nov 2019
Catégories
En savoir plus sur Image Segmentation dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!