Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Background Illumination
Date: Mon, 20 Jul 2009 15:11:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 38
Message-ID: <h421e6$437$1@fred.mathworks.com>
References: <h3vi1h$1la$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1248102662 4199 172.30.248.38 (20 Jul 2009 15:11:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 20 Jul 2009 15:11:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1867706
Xref: news.mathworks.com comp.soft-sys.matlab:556852



I wanted to know what is the difference between

imshow(I2, []) and imshow(I2)

I checked out your post on Background Illumination and the image is dark when using only imshow(I2) while the image is great when using imshow(I2, [])

The problem I am facing now is that I want to use the good image and perform histeq on it ....

But when using

I3=(I2,[]) -----Error

I3=histeq(I2,[])---Error...

How to pass on the good image to another variable so that I can perform other operations on it...

Can you please help me... I am new to matlab....


Thanks a lot...


The code I am using:

I = imread('image.jpg');
backApprox = blkproc(I,[16,16 ],'mean(x(:))');
backApprox = (backApprox)/255; % Convert image to double.
figure, surf(backApprox);
set(gca,'ydir','reverse'); % Reverse the y-axis.
backApprox256 = imresize(backApprox, [64 512], 'bicubic');
figure, imshow(backApprox256) % Show resized background image.
I = im2double(I); % Convert I to storage class of double.
I2 = I - backApprox256; % Subtract the background from I.
I2 = max(min(I2,1),0); % Clip the pixel values to the valid range.

figure, imshow(I2,[]);-Good Image
figure, imshow(I2);-Dark Image