X-Received: by 10.224.207.66 with SMTP id fx2mr14186226qab.7.1356534315832;
        Wed, 26 Dec 2012 07:05:15 -0800 (PST)
 Dec 2012 07:05:15 -0800 (PST)
Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!ee4no2406121qab.0!news-out.google.com!k2ni3151qap.0!nntp.google.com!ee4no2406116qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups: comp.soft-sys.matlab
Date: Wed, 26 Dec 2012 07:05:15 -0800 (PST)
Complaints-To: groups-abuse@google.com
Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=182.177.142.64;
 posting-account=8re72woAAACwnh10aoDxFEoUlyP5ABcU
NNTP-Posting-Host: 182.177.142.64
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f5434ebb-07c1-4d37-9ea3-d187f26bf261@googlegroups.com>
Subject: Remove foreground from background.
From: kainat ali <kainat.ali21@gmail.com>
Injection-Date: Wed, 26 Dec 2012 15:05:15 +0000
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Lines: 7
Xref: news.mathworks.com comp.soft-sys.matlab:785420

Hi,
I'm taking an image of a single object. It is a camera shot (from 3 mega pixel camera). The background is gray-white(the object is place on a white paper). So how should i get the foreground i.e. the object and remove the background? I want to do all this without converting the image to gray-scale or distorting it in any way because i need the same pixels/matrix for future use.