1. MATLAB ASHOKA BAIRWA
Practical -- 7
Aim: Write a program to perform Intensity of Image using Image Viewer tool in MATLAB.
Theory:
It's hard to talk about "intensity" of an image. Every pixel has its intensity (for greyscale images, they
are usual allowed range is [0, 255])
Well, the intensity of the image is the average of the intensities of all pixels in an image (unless you're
doing anything more specific than that).
Contrast is defined as the separation between the darkest and brightest areas of the image. Increase
contrast and you increase the separation between dark and bright, making shadows darker and
highlights brighter.
The Image Viewer app presents an integrated environment for displaying images and performing
common image processing tasks.
Image Viewer provides all the image display capabilities of imshow, which optimizes figure, axes, and
image object property settings for image display. Image Viewer also provides access to several tools
for navigating and exploring images, such as the Pixel Region tool, Image Information tool, and the
Adjust Contrast tool.
IF YOU WANT TO SET THE DISPLAY RANGE WHEN CALLING IMTOOL, THEN THE 'DISPLAYRANGE' NAME IS OPTIONAL
UNLESS YOU SPECIFY THE IMAGE USING A FILE NAME.
THE SYNTAX IMTOOL(I,[LOW HIGH]) IS EQUIVALENT TO IMTOOL(I,'DISPLAYRANGE',[LOW HIGH]).
HOWEVER, YOU MUST SPECIFY THE 'DISPLAYRANGE' ARGUMENT WHEN CALLING IMTOOL WITH A FILE NAME, AS IN THE
SYNTAX IMTOOL(FILENAME,'DISPLAYRANGE',[LOW HIGH]).