フィルターのクリア

Regarding length of an image.

1 回表示 (過去 30 日間)
Shaila parvin
Shaila parvin 2013 年 6 月 21 日
length (srcfile);
Here, srcfile is an image. the previous line determines the length of an image but I don't understand what can be the length of an image!!
Can anyone help me please to understand it.
Thanks

採用された回答

David Sanchez
David Sanchez 2013 年 6 月 21 日
From Matlab point of view, an image is a matrix (sometimes a 3D matrix). if Im is the matrix containing your image,
length(Im)
will return the number of columns of the image matrix.
size(Im)
returns both rows and columns.
  1 件のコメント
Jan
Jan 2013 年 6 月 21 日
The name "scrFile" seems to imply, that this is the name of the image file. Then length(srcFile) replies the number of characters of this name.

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

その他の回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by