scale Image RGB

조회 수: 1 (최근 30일)
Mohamed Amine
Mohamed Amine 2012년 5월 24일
I have an image that her size is 776*608, i like to scale it and change her size to 645*463 ? Also, I have another question, how i know lineair transformation between 2 images, how to find this transformation and what should do to intensity if i find this transformation ? Any help please
  댓글 수: 2
Walter Roberson
Walter Roberson 2012년 5월 24일
imresize()
Mohamed Amine
Mohamed Amine 2012년 5월 24일
I know this commande but the problem i don't get the size that i predict to have in this commande . I predict to have as size 645*463 but when i use this commande i get 701*463. this is my problem

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

채택된 답변

Image Analyst
Image Analyst 2012년 5월 25일
I'm not sure I believe you that imresize() does not work. What do you notice when you run this code:
fontSize = 22;
rgbImage = uint8(randi(255, [776, 608, 3]));
subplot(1, 2, 1);
imshow(rgbImage);
title('Original Size Image', 'FontSize', fontSize);
axis on;
rgbImage2 = imresize(rgbImage, [645, 463]);
subplot(1, 2, 2);
imshow(rgbImage2);
title('Re-sized Image', 'FontSize', fontSize);
axis on;
% Enlarge figure to full screen.
set(gcf, 'units','normalized','outerposition',[0 0 1 1]);

추가 답변 (1개)

Mohamed Amine
Mohamed Amine 2012년 5월 25일
That's work, i forget ',' in my code. The problem now is how to match contours, i have two images i like to superpose contours and to find scale transformation. the url of two images is https://www.dropbox.com/gallery/81412928/1/Sample%20Album?h=8d9ba2
Can you help me to find how i extract transformation to superpose contours in the same position.
  댓글 수: 2
Image Analyst
Image Analyst 2012년 5월 25일
That looks more involved that I can solve in a few minutes and post here. So, good luck. You might try feature identification methods like MSER (http://en.wikipedia.org/wiki/Maximally_stable_extremal_regions), SURF, corner(), etc. SURF and MSER are in the Computer Vision Toolbox. corner() is in the Image Processing Toolbox.
Mohamed Amine
Mohamed Amine 2012년 5월 25일
My problem is not to find corresponding between two images , my problem is to superpose images with contours in the same position of the second image because when i superpose in the same position i can do segmentation easy, please i need your help it's the first step in my project. Thanks for your interesting

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

카테고리

Help CenterFile Exchange에서 Image Segmentation and Analysis에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by