필터 지우기
필터 지우기

if an input image is denoted as I(x,y),what does it mean ? what are the values of x and y ?does it means the size of the image of the values of the image?

조회 수: 2 (최근 30일)
if for example I(x,y) means does it means all the x rows of the image and y columns?

채택된 답변

Image Analyst
Image Analyst 2014년 2월 3일
Depends on the context. It could be an equation in a paper and it's specifying some equation for how you calculate the pixel values. Or it could just mean that the image is a 2D array instead of 3D. Anyway, you need to be careful because a lot of times there are functions in MATLAB and elsewhere that refer to (x,y) but it's a very common mistake that people use (x,y) as indexes for their image array. Usually x is the horizontal index and y is the vertical index, but for arrays, it's reversed - the first index is the vertical (rows) and the second is the horizontal (columns). So if you see an equation like that and want to translate it into MATLAB code, remember to swap them and use imageArray(y, x) or imageArray(rows, columns). If you don't, and the image is not square you'll get an index out of range error.
  댓글 수: 4
ashok
ashok 2014년 2월 3일
could you please tell me how to implement the above code in matlab

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by