Matlab Working With Images

  • 10,108 views
Uploaded on

Matlab Working With Images

Matlab Working With Images

More in: Technology , Business
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
No Downloads

Views

Total Views
10,108
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
0
Comments
1
Likes
4

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Matlab:Working with images
  • 2. Types of images
    Binary image
    Grayscale images
    Indexed image
    RGB image
  • 3. Binary Images
    Binary images are made of only two colors: Black and White
  • 4. Grayscale Images
    A grayscale image is a data matrix whose values represent intensities within some range.
  • 5. Indexed Images
    In an Indexed Image, the color of each image pixel is determined by using the corresponding value of X as an index into map.
  • 6. RGB Images
    An RGB image is stored as an m*n*3 data array that defines red, green, and blue color components for each individual pixel.
  • 7. Converting
    Matalb offers many useful commands to convert images form one form to another:
    Demosaic Convert Bayer pattern encoded image to truecolor (RGB) image.
    Dither Use dithering to convert a grayscale image to a binary image or to convert a truecolor image to an indexed image.
    Gray2ind Convert a grayscale image to an indexed image.
    Grayslice Convert a grayscale image to an indexed image by using multilevel thresholding.
  • 8. Converting
    Matalb offers many useful commands to convert images form one form to another:
    Im2bw Convert a grayscale image, indexed image, or truecolor image, to a binary image, based on a luminance threshold.
    Ind2gray Convert an indexed image to a grayscale image.
    Ind2rgb Convert an indexed image to a truecolor image.
  • 9. Converting
    Matalb offers many useful commands to convert images form one form to another:
    Mat2gray Convert a data matrix to a grayscale image, by scaling the data.
    Rgb2gray Convert a truecolor image to a grayscale image.
    Rgb2ind Convert a truecolor image to an indexed image.
  • 10. Viewing
    The following set of commands will read an image and display it:
    • IMAGE=imread(‘image1.jpg’);
    • 11. imshow(IMAGE);
  • Pixel-values
    The following set of commands will read an image, display it and give the information of the pixel at the tool-tip:
    • IMAGE=imread(‘image1.jpg’);
    • 12. imshow(IMAGE);
    • 13. impixelinfo;
  • Measuring the Distance Between Two Pixels
    The distance between any two pixels of an image can be calculated by opening the image in ‘imtool’ and using the ‘ruler’ tool:
    • IMAGE=imread(‘image1.jpg’);
    • 14. imtool(IMAGE);
  • Cropping an image
    An image can be cropped by opening the image in ‘imtool’ and using the ‘crop’ tool:
    • IMAGE=imread(‘image1.jpg’);
    • 15. imtool(IMAGE);
  • Cropping an image
    An image can be cropped by opening the image in ‘imtool’ and using the ‘crop’ tool:
    • IMAGE=imread(‘image1.jpg’);
    • 16. imtool(IMAGE);
  • Visit more self help tutorials
    Pick a tutorial of your choice and browse through it at your own pace.
    The tutorials section is free, self-guiding and will not involve any additional support.
    Visit us at www.dataminingtools.net