window fixing

10 ビュー (過去 30 日間)
javeed miyandad
javeed miyandad 2011 年 4 月 10 日
sir i have a image of size(mXn),i need to count black pixel from pixel(i j) with window size(32X64)
i am not geting how to fix window of(32X64) sir plz help me in coading
  1 件のコメント
Walter Roberson
Walter Roberson 2011 年 4 月 10 日
Do you mean go 16 pixels above to 16 below, and 32 pixels left to 32 right, and count the black pixels in that block?
If so then I note those are even numbers on each side, so there is no natural "central" pixel. How exactly do you want this window positioned with respect to a particular pixel ?

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

回答 (1 件)

the cyclist
the cyclist 2011 年 4 月 10 日
It is not clear to me what you want, but to get a section 32x64 from coordinates i,j use:
pixel(i:i+31,j:j+63)

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by