フィルターのクリア

sz means in image segmentation

3 ビュー (過去 30 日間)
nur hanani
nur hanani 2019 年 11 月 19 日
回答済み: Erivelton Gualter 2019 年 11 月 19 日
img=zeros(sz(1),sz(2));
can someone help me explain about this code?
  2 件のコメント
Erivelton Gualter
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
nur hanani
nur hanani 2019 年 11 月 19 日
sz is size, but sz(1) is it size 1 or what?

サインインしてコメントする。

回答 (2 件)

Erivelton Gualter
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)

Image Analyst
Image Analyst 2019 年 11 月 19 日
Before that code, someone probably did
sz = size(yourImage);
  1 件のコメント
nur hanani
nur hanani 2019 年 11 月 19 日
so 1 is my image name? but i dont have any image named 1.

サインインしてコメントする。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by