sz means in image segmentation

3 vues (au cours des 30 derniers jours)
nur hanani
nur hanani le 19 Nov 2019
img=zeros(sz(1),sz(2));
can someone help me explain about this code?
  2 commentaires
Erivelton Gualter
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
nur hanani le 19 Nov 2019
sz is size, but sz(1) is it size 1 or what?

Connectez-vous pour commenter.

Réponses (2)

Erivelton Gualter
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
Image Analyst le 19 Nov 2019
Before that code, someone probably did
sz = size(yourImage);
  1 commentaire
nur hanani
nur hanani le 19 Nov 2019
so 1 is my image name? but i dont have any image named 1.

Connectez-vous pour commenter.

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