i want to create a block of size W * W is centered at pixel (i; j) in the image.

1 回表示 (過去 30 日間)
chitresh
chitresh 2013 年 12 月 2 日
コメント済み: chitresh 2013 年 12 月 3 日
hi friends i am having a problem and like to solve it step by step
i want to create a block of size W*W and then make it centered at pixel(i,j) of an image. this is the first step i want to do now..
any links , code , tutorials will make me happy and appreciate your answer,
plz help me guys

回答 (1 件)

Image Analyst
Image Analyst 2013 年 12 月 2 日
編集済み: Image Analyst 2013 年 12 月 2 日
windowHalfWidth = floor(W/2);
oneBlock = grayImage(i-windowHalfWidth : i+windowHalfWidth, j-windowHalfWidth : j+windowHalfWidth);
  1 件のコメント
chitresh
chitresh 2013 年 12 月 3 日
input = imread('grayimage');
[r,c] = size(input);
then what is the w if i apply what u told me

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

カテゴリ

Help Center および File ExchangeImages についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by