.


:




:

































 

 

 

 


3:




, imtransform , . . ('fill', 'replicate', 'bound', 'circular' 'symmetric'). .

'fill' 'XData' 'YData' imtransform .

Bf=imtransform(A, T, makeresampler({'cubic', 'nearest'},... 'fill'), 'XData', [-49 500], 'YData',... [-49 400], 'FillValues', orange);figure, imshow(Bf);title('Pad Method=''fill''');

'replicate' .

Br=imtransform(A, T, makeresampler({'cubic', 'nearest'},... 'replicate'), 'XData', [-49 500], 'YData',... [-49 400]);figure, imshow(Br);title('Pad Method=''replicate''');

'bound'.

Bb=imtransform(A, T, makeresampler({'cubic', 'nearest'},... 'bound'), 'XData', [-49 500], 'YData',... [-49 400], 'FillValues', orange);figure, imshow(Bb);title('Pad Method=''bound''');

'fill' 'bound' . , 'bound' . ('fill' 'bound') .

Cf=imtransform(A, T, makeresampler({'cubic', 'nearest'},... 'fill'), 'XData', [423 439], 'YData',... [245 260], 'FillValues', orange);Cb=imtransform(A, T, makeresampler({'cubic', 'nearest'},... 'bound'), 'XData', [423 439], 'YData',... [245 260], 'FillValues', orange);Cf=imresize(Cf, 12, 'nearest');Cb=imresize(Cb, 12, 'nearest');figure;subplot(1, 2, 1); imshow(Cf); title('Pad Method=''fill''');subplot(1, 2, 2); imshow(Cb); title('Pad Method=''bound''');





:


: 2015-10-01; !; : 408 |


:

:

, .
==> ...

1721 - | 1540 -


© 2015-2024 lektsii.org - -

: 0.008 .