필터 지우기
필터 지우기

Image Projection for oriented images

조회 수: 3 (최근 30일)
Chandra Shekhar
Chandra Shekhar 2013년 2월 20일
I have input image and expected image in below link..
Please any one tell me how to achieve this projection and if input image having other type of orientation.
Thanks in advance.
  댓글 수: 1
Chandra Shekhar
Chandra Shekhar 2013년 2월 20일
편집: Chandra Shekhar 2013년 2월 20일
actually i tried like this
I = imread('img.jpg');
udata = [0 1];
vdata = [0 1]; % input coordinate system
tform = maketform('projective',[ 0 0; 1 0; 1 1; 0 1],...
[-4 2; -8 -3; -3 -5; 6 3]);
[B,xdata,ydata] = imtransform(I,tform,'bicubic','udata',udata,...
'vdata',vdata,...
'size',size(I),...
'fill',128);
imshow(I,'XData',udata,'YData',vdata), axis on
figure, imshow(B,'XData',xdata,'YData',ydata), axis on
this gives reverse operation what i am expecting. but i don't know how to choose the rows of projective in 'maketform', in order to reconstruct original image back.
This is just example,for different image how to choose the projective row in 'maketform'.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Read, Write, and Modify Image에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by