sz means in image segmentation
3 次查看(过去 30 天)
显示 更早的评论
img=zeros(sz(1),sz(2));
can someone help me explain about this code?
2 个评论
Erivelton Gualter
2019-11-19
what is sz meaning?
Here is a documentation for function zeros: https://www.mathworks.com/help/matlab/ref/zeros.html
回答(2 个)
Erivelton Gualter
2019-11-19
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)
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!