Path: news.mathworks.com!not-for-mail
From: "Sven " <sven.holcombe@gmail.deleteme.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: how to take input image from user
Date: Wed, 9 Apr 2008 07:33:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 21
Message-ID: <fthrfe$i0e$1@fred.mathworks.com>
References: <fthoji$t6n$1@fred.mathworks.com>
Reply-To: "Sven " <sven.holcombe@gmail.deleteme.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1207726382 18446 172.30.248.37 (9 Apr 2008 07:33:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 9 Apr 2008 07:33:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1326470
Xref: news.mathworks.com comp.soft-sys.matlab:461906


"Amol Deshpande" <sdamol@rediffmail.com> wrote in message
<fthoji$t6n$1@fred.mathworks.com>...
> how to take input image from user through kerboard for 
> image processing? as we take value for any variabe say 'x' 
> from user through command scanf,similarly how to take 
> image in Matlab.

What exactly do you mean by an image through a keyboard?

If you mean you ask the user to give matlab an image file
(.gif, .jpg, .bmp etc), then you can use the uigetfile
function to get a file name, and then use imread to load it
into matlab (although this isn't exactly getting the image
"from keyboard").

If you mean you want the user to somehow "type" the image
with the keyboard... then, other than asking them to type a
series of 1s or 0s, I'm a little lost.

Thanks,
Sven.