Please explain the concept of zeros for images...the code is [m n]=size(image); image1=zeros(8,m,n);
2 ビュー (過去 30 日間)
古いコメントを表示
Please explain the coding for the above syntax
1 件のコメント
Image Analyst
2014 年 3 月 3 日
FYI: follow up to http://www.mathworks.com/matlabcentral/answers/119836#answer_126774 about some unusual way of doing spatial filtering.
回答 (3 件)
Walter Roberson
2014 年 3 月 3 日
zeros() just returns a matrix the given size, with all of the values in the matrix set to 0. For example, zeros(3,5) would be the same as
[0 0 0 0 0; 0 0 0 0 0; 0 0 0 0 0]
0 件のコメント
Azzi Abdelmalek
2014 年 3 月 3 日
image1=zeros(8,5,2)
This line of code allows to pre allocate memory for a matrix 8x5x2, to be used after. you can fill your matrix with other values then zero, and make the process faster
2 件のコメント
参考
カテゴリ
Help Center および File Exchange で Image Filtering and Enhancement についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!