Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Help with image processing
Date: Tue, 3 Nov 2009 10:30:04 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 10
Message-ID: <hcp0nc$on$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1257244204 791 172.30.248.35 (3 Nov 2009 10:30:05 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 3 Nov 2009 10:30:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2074250
Xref: news.mathworks.com comp.soft-sys.matlab:582003


Dear all,

With interest I have read this newsreader and have worked through some demos of matlab. What I want to do is select automatically a fish in my image (because I want to measure its size and color later). 

What I get using edge and then filling in the closed spaces. I get pretty good results however not perfect. What I am thinking of now is assining a function that say capture as much (percentage wise) of the picture in a certain shape. What i mean by this because I do not get the fill fish selected that I say that it needs to fit an eggs shape between this and this pixel size to the picture and fit it to the binary mask such that it gets as much of the fish and then fill this. Thereby I select the body of the fish and exclude its caudal fin (the fin at the end of its body). In a similar way I would also like to extract my color reference card (at the left bottom of the pic.)

Is this possible to do and how should I go about it? Or is there a better approach?

I have made a few pictures of my progress.. there are at:
http://picasaweb.google.nl/mirresimons/Matlab#5399822443459403218