Download as rtf, pdf, or txt
Download as rtf, pdf, or txt
You are on page 1of 11

question 3

o=imread('C:\Users\hp\Documents\lg2017110\kitten.jpg');

>> imshow(o)

y=imagesc(o)
imgtool(o)

navigate
inspect pixel values
display image info
crop
measure
t=imfinfo('C:\Users\hp\Documents\lg2017110\kitten.jpg')

t=

struct with fields:

Filename: 'C:\Users\hp\Documents\lg2017110\kitten.jpg'

FileModDate: '05-Apr-2017 03:25:16'

FileSize: 187807

Format: 'jpg'
FormatVersion: ''

Width: 883

Height: 665

BitDepth: 24

ColorType: 'truecolor'

FormatSignature: ''

NumberOfSamples: 3

CodingMethod: 'Huffman'

CodingProcess: 'Sequential'

Comment: {}

[h,map]=rgb2ind(o,256);

>> imshow(h)
w=rgb2gray(o);

>> imshow(w)

>>
imcrop(o);
imcrop(o,[30,100,70,59]);

You might also like