フィルターのクリア

how to apply blkproc function

1 回表示 (過去 30 日間)
ramya raj
ramya raj 2011 年 8 月 30 日
hai
i am having a image of size 605X700 with NAN values i have to move a window of size
30x700 over this image
i am trying to use the blkproc function
but i don't know the apt parameters that can be passed to the blkproc with respect to my application please help me
  1 件のコメント
Andrei Bobrov
Andrei Bobrov 2011 年 8 月 30 日
exactly what you want to do with the window 30x700?

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

回答 (2 件)

Max
Max 2011 年 8 月 30 日
just try to apply zero padding over the unwanted areas manually rather than using the bacproc commands

Walter Roberson
Walter Roberson 2011 年 8 月 30 日
blkproc() is not supported in more recent MATLAB, having been replaced by blockproc().
The second argument to blkproc() should be your window size; in this case it would be [30 700]
blkproc() will pad your final 5 x 700 block with 0. It will not, however, be able to signal to you explicitly that it is a padded block.
If you want to use overlapping blocks, please see the older blkproc documentation such as can be found here
  1 件のコメント
ramya raj
ramya raj 2011 年 9 月 2 日
hai i have used the
B=blkproc(final2,[30 height],@(x)sum(x(~isnan(x))));
but i am getting the answer in a 21X1 matrix as all NAN,Inf,0
what is the problem i can't understand

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by