필터 지우기
필터 지우기

Relocating pixels after resizing the image

조회 수: 5 (최근 30일)
ImageProcNaive
ImageProcNaive 2016년 9월 12일
댓글: ImageProcNaive 2016년 9월 12일
I am marking some pixels in a low-res version of an image, which is smaller than the original image. Now I want to extract info from the original image using those markers. But no idea how to locate those marker/pixels in the bigger image. Help!

답변 (1개)

Image Analyst
Image Analyst 2016년 9월 12일
What is the "low res version"? Is it simply a small version of your huge image but just being displayed in a small axes on your figure? And how are you "marking some pixels"? If you're using ginput(), then the same (x,y) will work on your full sized image - there is nothing you need to do other than rounding x,y to the nearest integers so that you have integer rows and columns.
  댓글 수: 1
ImageProcNaive
ImageProcNaive 2016년 9월 12일
I had used the resize function to generate a smaller version of the image, which I referred as the low res version. I used "get(axesHandle,'CurrentPoint')" to obtain the location of the mouse button clicks from the low res image. I have stored the locations of these clicks which I referred as markers. Please let me know if you still have any confusion. Thanks in advance.

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

Community Treasure Hunt

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

Start Hunting!

Translated by