Skip to main content

Posts

Showing posts with the label Image Processing

Some more for your Hunger - I suppose

Now let's do some more. On my last post I've given a program to control contrast, Let's do Auto-Contrast now. autocontrast.m So, I think what is meant by Auto-contrast by doing some changes in the above program. Let's try Modified-Auto-Contrast. modautocontrast.m The last for this post will  be Alpha-blending.. alphablend.m

Point Operations

Okay, Now we have some basic idea of an Image, Let's do some Basic Point Operations on some images. Always remember to test these with low resolution images. Because, Larger images takes more time to process the image. For, Starters do with 512x512 is appropriate. Basic Point Operations Brightness - Increasing and reducing the image's Brightness brightness.m Contrast - Controlling the Contrast of an image contrast.m Threshold - Doing threshold operation with a specific Threshold value threshold.m Inverting - Inverting an image invert.m Do some changes in these and try it yourself for more understanding #TRASHCODERS

Finding the histogram of an image

Okay, on the last post I've said what is an histogram. Now let's do a simple example on MATLAB to understand the concept. We will be using some well known Images for our exercises. "Lena", "Barbara", "Baboon" are some. For finding the histogram I'm providing two programs. One returns the histogram as output. histogram.m One returns three graphs of three different images to look the difference. histrogram3.m #TRASHCODERS

Image Processing

Okay, Now let's start doing Image Processing exercises on MATLAB. Before diving in let's start knowing what are the terms "Histograms", "Cumulative Histograms" and "Histogram Equalization" of an image. Let's see what are those, Histogram An image histogram is a type of histogram that acts as a graphical representation of the tonal distribution in a digital image. It plots the number of pixels for each tonal value. By looking at the histogram for a specific image a viewer will be able to judge the entire tonal distribution at a glance. Cumulative Histogram A cumulative histogram is a mapping that counts the cumulative number of observations in all of the bins up to the specified bin. That is, the cumulative histogram M i of a histogram m j is defined as:  Histogram Equalization Histogram equalization is a method in image processing of contrast adjustment using the image's histogram. for more definitions visit wik