
Image Processing Techniques Showcase
Dive into a visual journey exploring various image processing techniques, including image center cropping, rotation, contrast stretching, and more. Witness the transformation of images through these methods and enhance your understanding of digital image manipulation.
Download Presentation

Please find below an Image/Link to download the presentation.
The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.
You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.
The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.
E N D
Presentation Transcript
Kp mentse a memriba imwrite fggvny I = imread( Lena.bmp ); Icentar = I(91:190, 91:190); imwrite(Icentar, LenaFace.bmp ) imwrite(Icentar, LenaFace.jpg ) 91:190, 91:190 dim. 100x100 Ibmp = imread( LenaFace.bmp ); Ijpg = imread( LenaFace.jpg ); Lena.bmp
Kp mentse a memriba imwrite fggvny subplot(1,2,1), imshow(Ibmp, [0 255]), title( bmp ) subplot(1,2,2), imshow(Ijpg, [0 255]), title( jpg ) 1:10, 1:10 1:10, 1:10
Kp rotcija imrotate fggvny I=imread('lena.bmp'); I45=imrotate(I,45); I45crop=imrotate(I,45,'crop'); subplot(1,3,1), imshow(I), title('Original 256x256') subplot(1,3,2), imshow(I45), title('Rotated 45 degrees, 363x363') subplot(1,3,3), imshow(I45crop), title('Rotated 45 degrees, 256x256, cropped')
Kp rotcija imrotate fggvny 10863x10863 pikszel
Contrast streching A=uint8(round(180*rand(10)))+20 min(min(A)) = 23 max(max(A)) = 198
Contrast streching min(min(A)) = 23 max(max(A)) = 198
Contrast streching min(min) = 74 max(max) = 224 Kontrast = 150
Indexed images Image matrix + colormap A = myColorMap = 10 10 uint8 matrix 0 0 0 1 0 0 0 1 0 0 0 1 1 1 0 1 0 1 0 1 1 1 1 1 1 2 7 1 4 8 3 2 2 0 7 2 5 6 7 8 8 3 5 2 3 4 3 5 7 6 1 7 1 1 8 7 2 6 7 6 3 5 1 6 5 5 7 2 7 5 6 3 4 8 3 1 6 2 3 0 4 3 8 6 1 4 2 1 1 3 5 2 4 1 6 7 2 4 8 5 4 6 2 7 7 7 1 4 8 7 7 0 1 8 5 5 3 2 2 2 3 1 2 3
Indexed images Image matrix + colormap A = copper(8) 10 10 uint8 matrix 0 0 0 0.1786 0.1116 0.0711 0.3571 0.2232 0.1421 0.5357 0.3348 0.2132 0.7143 0.4464 0.2843 0.8929 0.5580 0.3554 1.0000 0.6696 0.4264 1.0000 0.7812 0.4975 1 2 7 1 4 8 3 2 2 0 7 2 5 6 7 8 8 3 5 2 3 4 3 5 7 6 1 7 1 1 8 7 2 6 7 6 3 5 1 6 5 5 7 2 7 5 6 3 4 8 3 1 6 2 3 0 4 3 8 6 1 4 2 1 1 3 5 2 4 1 6 7 2 4 8 5 4 6 2 7 7 7 1 4 8 7 7 0 1 8 5 5 3 2 2 2 3 1 2 3 copper(256)
Indexed images I=imread('lena.bmp'); subplot(1,3,1), imshow(I, hot(256)), colorbar subplot(1,3,2), imshow(I, cool(256)), colorbar subplot(1,3,3), imshow(I/16, parula(16)), colorbar
Indexed images I=imread('lena.bmp'); imshow(I/32,copper(8)), title('copper, 8 shades') copper(8) 0 0 0 0.1786 0.1116 0.0711 0.3571 0.2232 0.1421 0.5357 0.3348 0.2132 0.7143 0.4464 0.2843 0.8929 0.5580 0.3554 1.0000 0.6696 0.4264 1.0000 0.7812 0.4975 I=imread('lena.bmp'); imshow(I/64,copper(4)), title('copper, 4 shades') copper(4) 0 0 0 0.4167 0.2604 0.1658 0.8333 0.5208 0.3317 1.0000 0.7812 0.4975