필터 지우기
필터 지우기

How to extract certain pixels from an image and reshape to plot?

조회 수: 1 (최근 30일)
Jun FAN
Jun FAN 2019년 7월 9일
답변: Jyotsna Talluri 2019년 7월 26일
Dear Matlab friends,
I have an image example:
Does anybody know how to extract the pixels for the right corner with certain shape and replot it in a rotated fashion? Something as follows:
It'll be good to get it done by Matlab in an antomatic way as I have a large batch of images like this to be processed.
Any help will be much appreciated.
Thanks in advance.
Jun

답변 (1개)

Jyotsna Talluri
Jyotsna Talluri 2019년 7월 26일
Hi,
You can directly crop the required part of the image by using the imcrop() function
Specify the required size and the position of the cropped region in terms of spatial coordinates.
Refer to this link below for imcrop() function
The function in the below link provides the code which rotates the image by the specified angle with automatic cropping of black corners.

카테고리

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