필터 지우기
필터 지우기

Divide and crop an image into specific number of parts

조회 수: 3 (최근 30일)
Ketan Shende
Ketan Shende 2021년 6월 22일
답변: Image Analyst 2021년 6월 23일
I have an image that is 11.75x9.5 inches (7084x5676 in pixels). I want to divide the image such that it creates a 1.5x1.5 cropped area. Looks like I have to divide 11.75 by 8 that will be around 1.46 and 9.5 by 6 that will be around 1.58. This is the closest that I can get in order to achieve 1.5x1.5 cropped parts if I want to divide by a whole number. How do I do that in MATLAB? I am confused whether the same number that I used to divide the parameters in inches will be used to divide the parameters in pixels.Secondly, I am confused in generating the for loop so that I will successfully increment the corners of each cropping window in order to cover the entire image area.

답변 (1개)

Image Analyst
Image Analyst 2021년 6월 23일

카테고리

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

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by