数字图像处理之几何变换
生活随笔
收集整理的這篇文章主要介紹了
数字图像处理之几何变换
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、
imresize
?IMRESIZE Resize image.
??? IMRESIZE resizes an image of any type using the specified
??? interpolation method. Supported interpolation methods
??? include:
???????? 'nearest'? (default) nearest neighbor interpolation
?
???????? 'bilinear' bilinear interpolation
?
???????? 'bicubic'? bicubic interpolation
縮小
A=imread('lena.jpg'); subplot(1,2,1);imshow(A);title('原圖像'); B=imresize(A,0.1,'nearest'); subplot(1,2,2);imshow(B);title('zoom');
放大
A=imread('lena.jpg'); subplot(1,2,1);imshow(A);title('原圖像'); B=imresize(A,10,'nearest'); subplot(1,2,2);imshow(B);title('zoom');
、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、
halcon幾何變換
read_image (Lena, 'C:/Program Files/MVTec/HALCON-10.0/images/barcode/25industrial/25industrial07.PNG')* read_image (Lena, 'F:/image/lena.jpg') get_image_size (Lena, Width, Height) * dev_close_window () * dev_open_window (0, 0, Width/2, Height/2, 'black', WindowHandle) * set_display_font (WindowHandle, 14, 'mono', 'true', 'false') * dev_display (Lena) * disp_continue_message (WindowHandle, 'black', 'true') * stop () access_channel(Lena, Image, 1)* read_image(Image,'monkey') zoom_image_size (Image, ZooImage, Width/8, Width/8, 'nearest_neighbor')rotate_image(ZooImage, ImageRotate, -90, 'constant')write_image (ImageRotate, 'png', 0, 'C:/Program Files/MVTec/HALCON-10.0/images/barcode/25industrial/25industrial08.PNG')
imresize
?IMRESIZE Resize image.
??? IMRESIZE resizes an image of any type using the specified
??? interpolation method. Supported interpolation methods
??? include:
???????? 'nearest'? (default) nearest neighbor interpolation
?
???????? 'bilinear' bilinear interpolation
?
???????? 'bicubic'? bicubic interpolation
縮小
A=imread('lena.jpg'); subplot(1,2,1);imshow(A);title('原圖像'); B=imresize(A,0.1,'nearest'); subplot(1,2,2);imshow(B);title('zoom');
放大
A=imread('lena.jpg'); subplot(1,2,1);imshow(A);title('原圖像'); B=imresize(A,10,'nearest'); subplot(1,2,2);imshow(B);title('zoom');
、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、
halcon幾何變換
read_image (Lena, 'C:/Program Files/MVTec/HALCON-10.0/images/barcode/25industrial/25industrial07.PNG')* read_image (Lena, 'F:/image/lena.jpg') get_image_size (Lena, Width, Height) * dev_close_window () * dev_open_window (0, 0, Width/2, Height/2, 'black', WindowHandle) * set_display_font (WindowHandle, 14, 'mono', 'true', 'false') * dev_display (Lena) * disp_continue_message (WindowHandle, 'black', 'true') * stop () access_channel(Lena, Image, 1)* read_image(Image,'monkey') zoom_image_size (Image, ZooImage, Width/8, Width/8, 'nearest_neighbor')rotate_image(ZooImage, ImageRotate, -90, 'constant')write_image (ImageRotate, 'png', 0, 'C:/Program Files/MVTec/HALCON-10.0/images/barcode/25industrial/25industrial08.PNG')
轉載于:https://www.cnblogs.com/-song/archive/2012/03/25/3331885.html
超強干貨來襲 云風專訪:近40年碼齡,通宵達旦的技術人生總結
以上是生活随笔為你收集整理的数字图像处理之几何变换的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 数字图像处理之点运算
- 下一篇: 数字图像处理之空间域图像增强