SegmentTool launches a UI-driven tool for trying different approaches to masking your image.
IMPORTANT: This version is being maintained only to support usage in R14a and earlier. For R14b+, please use this version instead:
http://www.mathworks.com/matlabcentral/fileexchange/48859-segment-images-interactively--and-generate-matlab-code
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
Brett Shoelson (2019). SegmentTool: An Interactive GUI for Segmenting Images (https://www.mathworks.com/matlabcentral/fileexchange/38484-segmenttool-an-interactive-gui-for-segmenting-images), MATLAB Central File Exchange. Retrieved .
1.7.0.1 | Updated license |
|
1.7.0.0 | Adding a usage note for segmentImage (R14b+). |
|
1.7.0.0 | Provides a missing function that enables loading of new data from file or workspace. |
|
1.5.0.0 | Provides a missing subfunction, better image input, better default tabPanel and expandAxes behavior. |
|
1.4.0.0 | Improved expandAxes capabilities, better default tabPanel behavior, better import of images...lots of little stuff. |
|
1.3.0.0 | Better support of SegmentTool as an App, and incorporation of the improved ExpandAxes (which now allows right-click exporting of images!). |
|
1.2.0.0 | Missing function for loading images provided. (Important if you want to load from the file menu!) |
|
1.1.0.0 | Included Color-Based segmentation tab. |
Inspired by: Image Morphology, distribute, sliderPanel, expandAxes(hndls,rotEnable), showMaskAsOverlay, ThresholdLocally, Circle Finder
Inspired: Segment images interactively, and generate MATLAB code, Lens Distortion Explorer
Create scripts with code, output, and formatted text in a single executable document.
rui (view profile)
Mary O'Connor (view profile)
morling qin (view profile)
How to use the segmentation tool?
Paget Luborov (view profile)
tasian LEE (view profile)
Chris Bartolome (view profile)
Disregard the error I found below. I found the note that this version supports the older versions.
Great App, thank you!
Chris Bartolome (view profile)
When I try to install the tool, it gives me a message saying that the app requires the Control Systems Toolbox, and the Computer Vision System Toolbox. I install anyway and the app gives me several errors and will not run. Any tips? (I am running MATLAB R2016a)
Aldo Zaimi (view profile)
would love to have the manual segmentation tool in this GUI, would be great for people who want to produce ground truths to validate their segmentations strategies.
Brett Shoelson (view profile)
@Sven: Thanks for the note--I hope you find the app useful. I'm not sure why the new version didn't work for you in R2015b, though. (It absolutely does not require the Control Systems Toolbox.)
Brett
Sven Dickinson (view profile)
Loaded R2016a and it works perfectly
Sven Dickinson (view profile)
I installed this app (newer version) under R2015b (I have image processing toolbox but not control systems toolbox). Can't seem to properly import an image into the app for display and later segmentation -- shows blank. Any suggestions?
Sachin J (view profile)
hello, could you please tell us how to segment text and picture from screen content image.
pls provide source code
Thanks and regards;
SJ
Sheng-hong Chen (view profile)
Vasumathi Ganesh (view profile)
hello Brett Shoelson,
can u tell me how to execute this file. I'm using matlab 2012a version.
Brett Shoelson (view profile)
IMPORTANT NOTE: This version may not work properly in R2014b or newer MATLAB installations. If you use a current version of MATLAB, please GET THIS VERSION INSTEAD:
http://www.mathworks.com/matlabcentral/fileexchange/48859
Thanks,
Brett
Atif Anwer (view profile)
Mahmoud Gaber (view profile)
Sonrisa (view profile)
Zafer (view profile)
Brett Shoelson (view profile)
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
Lim (view profile)
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.
sailorxt (view profile)
Good example for GUI of IP application.
Geoffrey (view profile)
Great example for understanding techniques!
Maria Belén Bernini (view profile)
Can you send me the getNewImage function?. Thanks
Ciaran Robb (view profile)
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
Priyanka (view profile)
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)
---------------------------------------------------------------
Geoffrey (view profile)
'opengl software' fixed the title problem.
Thank you for all and I'm gonna wait your further release.
Brett Shoelson (view profile)
@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?)
Geoffrey (view profile)
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
Brett Shoelson (view profile)
@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
Geoffrey (view profile)
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)
---------------------------------------------------------------
shaik gousal (view profile)
Can any one tell me the execution process.......please.