How to rotate some part of image?

조회 수: 2 (최근 30일)
Imran Riaz
Imran Riaz 2022년 8월 10일
댓글: Image Analyst 2023년 9월 9일
I have dataset of finger images; but some fingers are not captured in straight way; and they are misalighned at some other angle due to which I cannot get mask of that image properly. Now I want to rotate all those fingers only so that background can be removed easily with well alighned fingers. Following is misalighned finger image.
I need images with straight fingers.
How I can do it?
  댓글 수: 2
Matt J
Matt J 2022년 8월 10일
How is the orientation of the finger measured?
How are you getting the mask when the finger is aligned the way you'd like it?
Imran Riaz
Imran Riaz 2022년 8월 11일
This is the masked image in above figure. I also want to remove the black area. But when i apply loop to select the only 1's values and ignore the zeros. The image is cut down from right side and from left side some black portion at bottom side is also present.
So if the fingure is in straight position it can be easily removed.

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

답변 (3개)

Narvik
Narvik 2023년 9월 7일
Hi,
I understand that you want to rotate images so that they are aligned in specific manner.
This can be done by applying geometric transformation on the image using the imwarp function. For more information, refer to the following documentation:
You can also use the Registration Estimator app to align the misaligned images. Please refer to the documentation of Registration Estimator app below:
Hope this helps!

Image Analyst
Image Analyst 2023년 9월 7일
You can use the radon transform to determine the angle you need to rotate by. See how I rotated the football in the attached demo.

DGM
DGM 2023년 9월 9일
This question is one in a long set of unclear questions which together likely form an XY problem.
This is a rough summary of a large portion of the set of given questions, with some examples.
  댓글 수: 1
Image Analyst
Image Analyst 2023년 9월 9일
Yes, he just says "I need images with straight fingers." without any justification for why. I'd like to know the reason why. I'd bet it is not really needed, and if we knew the steps he was going to take after it was rotated, we could determine if rotation was really needed.

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

카테고리

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

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by