Code covered by the BSD License  

Highlights from
SegmentTool: An Interactive GUI for Segmenting Images

4.57143

4.6 | 7 ratings Rate this file 318 Downloads (last 30 days) File Size: 464 KB File ID: #38484
image thumbnail

SegmentTool: An Interactive GUI for Segmenting Images

by

 

09 Nov 2012 (Updated )

Interactively find the best approach to segmenting (masking) your image

| Watch this File

File Information
Description

SegmentTool launches a UI-driven tool for trying different approaches to masking your image.

Try different edge detection algorithms, modifying all possible parameters; implement global or local thresholds; detect regional or extended minima or maxima; find lines or circles. See the results of different approaches and inputs immediately.

Import new images from file or workspace; export segmentation masks; generate reproduction code; visualize segmentation on your original image; change colorspace representaions; lots more!

CURRENT TABS:
edge; threshold; Hough line/circle; Regional/Extended Min/Max, Color-Based.

COMING SOON:
A tab to manage manual segmentation approaches!

Suggestion: Use SegmentTool in conjunction with MorphTool to increase your image processing productivity!

See also: MorphTool

Acknowledgements

Morph Tool, Distribute, Slider Panel, Expand Axes, Show Mask As Overlay, Threshold Locally, and Find Circles Gui inspired this file.

This file inspired Lens Distortion Explorer.

Required Products Image Processing Toolbox
MATLAB release MATLAB 8.0 (R2012b)
Other requirements MATLAB R2009a or later. In order to call FindCirclesGUI, you'll need R2012a or later. If you want to add this as an App, you'll need R2012b.
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (17)
20 Aug 2014 Atif Anwer  
08 Aug 2014 Mahmoud Gaber  
19 Mar 2014 Sonrisa  
09 Nov 2013 Zafer  
21 Jun 2013 Brett Shoelson

Lim, I provided the mlappinstaller, but I also provided all of the MATLAB code files. On the right, there's a "Download App" button, but there's also a "Download Submission" one. Try the second, see if you get the files you need.
Cheers,
Brett

21 Jun 2013 Lim

Hi. I try to download the GUI but it is in .mlappinstall format, it cannot be opened/run as I have a R2011a (MATLAB 7.12.0). Please help.

25 Apr 2013 sailorxt

Good example for GUI of IP application.

09 Apr 2013 Geoffrey

Great example for understanding techniques!

11 Mar 2013 Maria Belén Bernini

Can you send me the getNewImage function?. Thanks

11 Mar 2013 Ciaran Robb

Hi,

A great tool. I too am getting the error Error in SegmentTool/getFile (line 414)
[img,cmap,original.fname,~,userCanceled] = getNewImage(true);
Can you send me the fix for this

Thanks
Ciaran

08 Mar 2013 Priyanka

I get the same error when I click on FILE --> import. Can you pls send me the file too asap.

there is an error:

---------------------------------------------------------------
Error in SegmentTool/getFile (line 414)
[img,cmap,original.fname,~,userCanceled] = getNewImage(true);

Error while evaluating uimenu Callback
---------------------------------------------------------------

Did I make a mistake?

I'm on:

---------------------------------------------------------------
MATLAB Version 8.0 (R2012b)
Image Processing Toolbox Version 8.1 (R2012b)
---------------------------------------------------------------

06 Mar 2013 Geoffrey

'opengl software' fixed the title problem.

Thank you for all and I'm gonna wait your further release.

06 Mar 2013 Brett Shoelson

@Geoffrey:
Again, I have the FindCirclesGUI in a state of "waiting for update." I'm sending you a newer version of that, too--should address the problems with that command.

The inverted text problem is, I believe, an openGL rendering issue. Try ecxecuting the command "openGL software" (without the quotes) before you call SegmentTool, and see if that corrects the problem. (What version of MATLAB and of openGL are you using?)

06 Mar 2013 Geoffrey

Thank you very much for your fast answer!

The segmentation and Hough line tools are working very well but there is still some minor bug;

When I use any function all the titles are flipped upside down like that :
http://image.noelshack.com/fichiers/2013/10/1362583889-sans-titre.png

And the find-circles function doesn't work, i get the error message:
----------------------------------------------------------
Error using imread (line 368)
File "file_open.png" does not exist.

Error in FindCirclesGUI (line 71)
tmp =
im2double(imread('file_open.png'));

Error in SegmentTool/LaunchFindCirclesGUI (line 1784)
FindCirclesGUI(get(imhandles(workingax),'cdata'))

Error while evaluating uicontrol Callback
----------------------------------------------------------

I try to call my file like 'file_open.png' but it still doesn't works...

Thank you again for using your time.
Cordially, Geoffrey

06 Mar 2013 Brett Shoelson

@Geoffrey:
The mistake was mine. I made a change, but neglected to include the "getNewImage" function. I expect the corrected version to be available soon. In the meantime, I sent the file to you directly. Thank you for the notification!
Brett

06 Mar 2013 Geoffrey

When I click on FILE --> import

there is an error:

---------------------------------------------------------------
Error in SegmentTool/getFile (line 414)
[img,cmap,original.fname,~,userCanceled] = getNewImage(true);

Error while evaluating uimenu Callback
---------------------------------------------------------------

Did I make a mistake?

I'm on:

---------------------------------------------------------------
MATLAB Version 8.0 (R2012b)
Image Processing Toolbox Version 8.1 (R2012b)
---------------------------------------------------------------

11 Feb 2013 shaik gousal

Can any one tell me the execution process.......please.

Updates
09 Nov 2012

Included Color-Based segmentation tab.

17 Dec 2012

Missing function for loading images provided. (Important if you want to load from the file menu!)

27 Feb 2013

Better support of SegmentTool as an App, and incorporation of the improved ExpandAxes (which now allows right-click exporting of images!).

12 Mar 2013

Improved expandAxes capabilities, better default tabPanel behavior, better import of images...lots of little stuff.

03 Apr 2013

Provides a missing subfunction, better image input, better default tabPanel and expandAxes behavior.

03 Apr 2013

Provides a missing function that enables loading of new data from file or workspace.

Contact us