필터 지우기
필터 지우기

How to crop image from two added image

조회 수: 1 (최근 30일)
Stephen john
Stephen john 2022년 6월 7일
편집: Matt J 2022년 6월 7일
Hello everyone, I hope you are doing well.
I have image which consists of two image. i want to crop the image and seperate the both image and save it in folder
I have attached the following image. it is basically consists of two image one is right and second is left as you can see
How can i do that in MATLAB

답변 (2개)

Matt J
Matt J 2022년 6월 7일
편집: Matt J 2022년 6월 7일
im1=Image(:,1:N,:);
im2=Image(:,N+1:end,:);

Image Analyst
Image Analyst 2022년 6월 7일
Try this
theImage = imread('splitImage.jpeg');
[rows, columns, numberOfColorChannels] = size(theImage)
rows = 320
columns = 628
numberOfColorChannels = 3
midCol = round(columns/2)
midCol = 314
leftImage = theImage(:, 1 : midCol, :);
subplot(1, 2, 1);
imshow(leftImage, []);
title('Left Half of the Image')
rightImage = theImage(:, midCol + 1 : end, :);
subplot(1, 2, 2);
imshow(rightImage, []);
title('Right Half of the Image')

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by