Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Horn Detection in Leukaemia Images
Date: Thu, 19 Feb 2009 09:38:01 +0000 (UTC)
Organization: Queen's University
Lines: 18
Message-ID: <gnj99p$nt7$1@fred.mathworks.com>
References: <gnemko$pnv$1@fred.mathworks.com> <gnf7kg$a71$1@fred.mathworks.com> <gnfedt$1v9$1@fred.mathworks.com> <gngbe2$gg$1@fred.mathworks.com> <gni2pt$t2k$1@fred.mathworks.com>
Reply-To: <HIDDEN>
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 1235036281 24487 172.30.248.37 (19 Feb 2009 09:38:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 19 Feb 2009 09:38:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 943450
Xref: news.mathworks.com comp.soft-sys.matlab:519373


Hi there,

I tried creating a gradient magnitude image after different levels of Gaussian smoothing to see how strong the edges looked... they are pretty good, but not all of the time.  I also tried a wavelet transform in case it happened to make things any clearer.  Then I tried thresholding, and some morphological operations.  All of them provided interesting alternative ways to view the image, but none suggested (to me) a really straightforward solution.

The Hough transform surprised me too - it looks pretty good, but I wonder how you can take it further.  It could perhaps suggest cell centres to use as seed locations for region growing.

I've sent you an email.

-----
Regarding the GUI stuff.... uigetfile just gives a slightly nicer way for the user to input a filename, rather than having to type it (and possibly the file path) at the command line.
[fname, fpath] = uigetfile;
im = imread(fullfile(fpath, fname));

There  are other options in uigetfile that let you refine it a bit, such as applying a filter so that only files with valid (image) extensions are selectable.

Which is only really to suggest that if you don't have time for a full GUI, you can use functions like that to quickly make things a bit simpler for users who feel uncomfortable with controlling everything from the command line.  You can also try dialog boxes, like
  n_cells = inputdlg('Input the number of cells');
although sometimes this can be more distracting than helpful.... and you'll need to deal with the possibility the user will enter something silly.... but that's for later.