| ²é¿´: 664 | »Ø¸´: 3 | |||
472381565гæ (СÓÐÃûÆø)
|
[ÇóÖú]
¸øÕâ¶ÎMATLAB³ÌÐòÖÐû¼Ó×¢½âµÄµØ·½¼ÓÉÏ×¢½â¡£
|
|
I1 = double(imread('X6.jpg')); [h1 w1 d1] = size(I1); I2 = double(imread('X7.jpg')); [h2 w2 d2] = size(I2); %ÏÔʾͼÏñ²¢ÔÚÏÔʾµÄͼÏñÉÏÈ¡×ø±ê figure; subplot(1,2,1); image(I1/255); axis image; hold on; title('first input image'); [X1 Y1] = ginput2(2); %ÔÚµÚÒ»·ùͼÏñÉÏÈ·¶¨2¸öµã subplot(1,2,2); image(I2/255); axis image; hold on; title('second input image'); [X2 Y2] = ginput2(2); %ÔÚµÚ¶þ·ùͼÏñÉÏÈ¡2¸öµã Z = [ X2' Y2' ; Y2' -X2' ; 1 1 0 0 ; 0 0 1 1 ]'; xp = [ X1 ; Y1 ]; t = Z \ xp; a = t(1); b = t(2); tx = t(3); ty = t(4); T = [a b tx ; -b a ty ; 0 0 1]; cp = T*[ 1 1 w2 w2 ; 1 h2 1 h2 ; 1 1 1 1 ]; Xpr = min( [ cp(1, 0 ] ) : max( [cp(1, w1] );Ypr = min( [ cp(2, 0 ] ) : max( [cp(2, h1] ); [Xp,Yp] = ndgrid(Xpr,Ypr); [wp hp] = size(Xp); X = T \ [ Xp( Yp( ones(wp*hp,1) ]'; clear Ip; xI = reshape( X(1, ,wp,hp)';yI = reshape( X(2, ,wp,hp)';Ip(:,:,1) = interp2(I2(:,:,1), xI, yI, '*bilinear'); Ip(:,:,2) = interp2(I2(:,:,2), xI, yI, '*bilinear'); Ip(:,:,3) = interp2(I2(:,:,3), xI, yI, '*bilinear'); offset = -round( [ min( [ cp(1, 0 ] ) min( [ cp(2, 0 ] ) ] );Ip(1+offset(2):h1+offset(2),1+offset(1):w1+offset(1), = double(I1(1:h1,1:w1, );figure; image(Ip/255); axis image; title('mosaic image'); |
» ²ÂÄãϲ»¶
281Çóµ÷¼Á
ÒѾÓÐ6È˻ظ´
»ªÄÏÀí¹¤0703»¯Ñ§£¬×Ü·Ö336Çóµ÷¼Á
ÒѾÓÐ6È˻ظ´
285Çóµ÷¼Á
ÒѾÓÐ12È˻ظ´
085600²ÄÁÏÓ뻯¹¤301·ÖÇóµ÷¼ÁԺУ
ÒѾÓÐ13È˻ظ´
295Çóµ÷¼Á
ÒѾÓÐ11È˻ظ´
²ÄÁÏÓ뻯¹¤×¨Ë¶306·ÖÕÒºÏÊʵ÷¼Á
ÒѾÓÐ3È˻ظ´
0703µ÷¼Á£¬Ò»Ö¾Ô¸Ìì½ò´óѧ319·Ö
ÒѾÓÐ11È˻ظ´
Çóµ÷¼Á
ÒѾÓÐ21È˻ظ´
²ÄÁÏר˶(0856) 339·ÖÇóµ÷¼Á
ÒѾÓÐ10È˻ظ´
319Çóµ÷¼Á
ÒѾÓÐ3È˻ظ´
472381565
гæ (СÓÐÃûÆø)
- Ó¦Öú: 3 (Ó×¶ùÔ°)
- ½ð±Ò: 607.6
- É¢½ð: 14
- Ìû×Ó: 133
- ÔÚÏß: 19.5Сʱ
- ³æºÅ: 2082313
- ×¢²á: 2012-10-24
- ÐÔ±ð: MM
- רҵ: Ò£¸Ð»úÀíÓë·½·¨
2Â¥2013-06-01 16:42:49
somomo91
ר¼Ò¹ËÎÊ (Ö°Òµ×÷¼Ò)
-

ר¼Ò¾Ñé: +3 - Ó¦Öú: 144 (¸ßÖÐÉú)
- ½ð±Ò: 19353
- ºì»¨: 115
- Ìû×Ó: 3854
- ÔÚÏß: 1053.2Сʱ
- ³æºÅ: 2399301
- ×¢²á: 2013-04-03
- רҵ: ¶¯Á¦Ñ§Óë¿ØÖÆ
- ¹ÜϽ: ¼ÆËãÄ£Äâ
3Â¥2013-06-02 07:30:51
|
4Â¥2013-06-08 00:19:28














0 ] ) : max( [cp(1,
»Ø¸´´ËÂ¥