필터 지우기
필터 지우기

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

조회 수: 2 (최근 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

댓글을 달려면 로그인하십시오.

제품

Community Treasure Hunt

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

Start Hunting!

Translated by