필터 지우기
필터 지우기

How can I resample an image without changing the matrix size in MATLAB?

조회 수: 5 (최근 30일)
Slim
Slim 2017년 1월 5일
댓글: Walter Roberson 2017년 1월 6일
I have two DICOM images both have the same matrix sizes 512X512, however in the DICOM metadata I realized that one image has 0.4mm/pixel and the other is 0.79mm/pixel. I resampled 0.79mm/pixel image to 0.4mm/pixel using imresample.m (written by Omer Demirkayabut)but my matrix size changed to 992x992. Is there any way I can perform the resampling without changing the matrix size? I would really appreciate it if someone can help me. Thanks!

답변 (1개)

Jan
Jan 2017년 1월 5일
The question is not meaningful: The images are matrices only and do not contain the information of the resolution. Therefore you cannot resample the resolution, but only change the size of the matrix - and this cannot happen without changing the size of the matrix.
I guess, the problem is your assumption that a resampling is required. Please explain the actual problem in detail.
  댓글 수: 3
Slim
Slim 2017년 1월 5일
Yes I understand the images are matrices only,I should have added that they are both DICOM images so I have the DICOM metadata for both and thats how I realized they had different resolutions. So I want to know if there is a way I can change the 0.79mm/pixel image to 0.4mm/pixel and still maintain the matrix size?
Walter Roberson
Walter Roberson 2017년 1월 6일
You could crop the expanded matrix, possibly at an arbitrary or random section. If the portion to be cropped is not to be arbitrary you might want to do something like image registration

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

카테고리

Help CenterFile Exchange에서 Geometric Transformation and Image Registration에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by