0% found this document useful (0 votes)
132 views2 pages

Practical-7: Practical7 Digital Image Processing

This 3 sentence summary provides the essential information from the document: The document describes a MATLAB program that was written to compress the dynamic range of an image using log transformation, where an image of a star is read into the program, each pixel value is converted to a logarithmic value and multiplied by a constant, and the result is displayed in a subplot alongside the original image.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
132 views2 pages

Practical-7: Practical7 Digital Image Processing

This 3 sentence summary provides the essential information from the document: The document describes a MATLAB program that was written to compress the dynamic range of an image using log transformation, where an image of a star is read into the program, each pixel value is converted to a logarithmic value and multiplied by a constant, and the result is displayed in a subplot alongside the original image.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

PRACTICAL7

DIGITAL

IMAGE PROCESSING

PRACTICAL-7
DATE:-14/09/2011
AIM:- Write a MATLAB program to compress the Dynamic
Range of an image using Log Transformation.

SHUKLA HARSH
7TH EC-B
ROLL NO.:-08EC118
C8 BATCH
SR. NO.:-67

Page

PRACTICAL7

IMAGE PROCESSING

DIGITAL

PROGRAM:clear all;
r=imread('Z:\08EC120\DIP\DIP image\DIP3E_Original_Images_CH03\STAR.tif');

for i=1:256
for j=1:256
a=double(r(i,j));
s(i,j)=25.*log(1+a);
end
end
s=uint8(s);
subplot(1,2,1);
imshow(r);
subplot(1,2,2);
imshow(s);

SHUKLA HARSH
7TH EC-B
ROLL NO.:-08EC118
C8 BATCH
SR. NO.:-67

Page

You might also like