Search Comments and Ratings

go

   
Date File Comment by Comment Rating
01 May 2013 edfRead A simple file reader for European Data Formatted (EDF-) files. Author: Brett Shoelson Shoelson, Brett

Farid, I thought that's what I did. Perhaps if my response is unclear, or if I misunderstood your question, you can email me with a better explanation of what you would like to do with EDFREAD.
Cheers,
Brett
char(cumsum([98 16 -13 15 0 -70 69 -11 7 -10 7 7 -4 -1 -46 45 -12 19 -12 15 -8 3 -7 8 -69 53 12 -2]))

01 May 2013 edfRead A simple file reader for European Data Formatted (EDF-) files. Author: Brett Shoelson Shoelson, Brett

Farid,
Number of channels (signals?) is specified in line 124:
hdr.ns = str2double(fread(fid,4,'*char')');

In subsequent lines (125,128,132,...) the files reads 1:hdr.ns. If you wanted to, you could modify those calls to read (for example) signals [1,3,5,6,7] by changing instances of

for ii = 1:hdr

to

for ii = [1,3,5:7]

HTH,
Brett

29 Apr 2013 edfRead A simple file reader for European Data Formatted (EDF-) files. Author: Brett Shoelson Shoelson, Brett

@Oleksandr (and Ibraheem):
Thanks for the reviews/comments. My goal in writing this was to facilitate using MATLAB to analyze data stored in EDF format.

I encourage you to share your EDFWrite function, if you write one; creating that capability is a bit outside of my job description. ;)

I'm curious, though: what is your rationale for exporting to EDF after you've brought data in to MATLAB for analysis? Is there something you need to do with them that you can't do with MathWorks' tools? (Or did you just want to share with non-MATLAB users?)

Brett (the MATLAB guy)

26 Apr 2013 edfRead A simple file reader for European Data Formatted (EDF-) files. Author: Brett Shoelson Shoelson, Brett

Hisham, Would you either try to download the function again and re-try to read the file, or send me the file you downloaded. I'd like to understand what's going on.
Thanks,
Brett
char(cumsum([98 16 -13 15 0 -70 69 -11 7 -10 7 7 -4 -1 -46 45 -12 19 -12 15 -8 3 -7 8 -69 53 12 -2]))

25 Apr 2013 edfRead A simple file reader for European Data Formatted (EDF-) files. Author: Brett Shoelson Shoelson, Brett

Hisham, line 13 is already a comment, isn't it? Can you tell me what platform you're using, and what version of MATLAB? And can you download a signal from Physionet and try to read it? (For instance:

http://www.physionet.org/physiobank/database/adfecgdb/r01.edf

).

If you can read that signal, it would suggest there's something in your data file that might be problematic.

Thanks,
Brett

19 Apr 2013 Cascade Training GUI: Specify Ground Truth Interactive GUI for managing the selection and positioning of rectangular ROIs in a list of images. Author: Brett Shoelson Shoelson, Brett

@rana:
Rana, can you tell me a bit about what you tried? Were you able to establish ROIs in all of the 15 face images? Did you get any helpful messages inside of CascadeTrainGUI when you pressed the 'Train Detector!' button? (BTW, that's an exceptionally small number of images--I wouldn't be too optimistic about the quality of the detector.)

19 Apr 2013 PeakFinder Quickly finds local maxima (peaks) or minima (valleys) in a noisy signal. Author: Nate Yoder Shoelson, Brett

I've tried several approaches to detecting peaks in noisy data; this one worked best, and is exceptionally fast. Very nice work!

19 Apr 2013 setname Changes the figure name to equal the figure title. Author: Andrew Bliss Shoelson, Brett

I love this...it's brilliant!

12 Apr 2013 Sim.I.am A MATLAB-based educational bridge between theory and practice in robotics. Author: Jean-Pierre de la Croix Shoelson, Brett

This is a test.

13 Mar 2013 Cascade Training GUI: Specify Ground Truth Interactive GUI for managing the selection and positioning of rectangular ROIs in a list of images. Author: Brett Shoelson Shoelson, Brett

@Nicola:
Thanks, Nicola. I had hoped that using this would be pretty self-explanatory. Can you tell me a bit about what you're having trouble with? (If it's actually training a detector [second tab], note that you'll need to download and install R2013a, and have a license for Computer Vision System Toolbox, to do so.)

10 Mar 2013 exploreRGB Simple utility to view all color planes, grayscale, and colorspace conversions of an RGB image. Author: Brett Shoelson Shoelson, Brett

@Amir:
Please see my comment of 18 Oct, 2010.
Thanks, Brett

10 Mar 2013 Cascade Training GUI: Specify Ground Truth Interactive GUI for managing the selection and positioning of rectangular ROIs in a list of images. Author: Brett Shoelson Shoelson, Brett

@Harsh:
I appreciate your comment, Harsh. (Especially the "superb work" part :) ). I call your attention to my note below; MATLAB R13a is live, and ready for download. I waited until that was true before posting this file.

And if your "how?" refers to "how did I get access to R13a" before it was officially released--I should point out that I work for MathWorks!

Download R13a and start training!

08 Mar 2013 Cascade Training GUI: Specify Ground Truth Interactive GUI for managing the selection and positioning of rectangular ROIs in a list of images. Author: Brett Shoelson Shoelson, Brett

PLEASE NOTE: Training a cascade detector in MATLAB requires R2013a (which is live today, and ready for download!). You can use this GUI in previous versions to specify ground truth and to apply pre-trained detectors...but you'll need R13a to train new ones!

06 Mar 2013 SegmentTool: An Interactive GUI for Segmenting Images Interactively find the best approach to segmenting (masking) your image Author: Brett Shoelson Shoelson, Brett

@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 SegmentTool: An Interactive GUI for Segmenting Images Interactively find the best approach to segmenting (masking) your image Author: Brett Shoelson Shoelson, Brett

@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

27 Feb 2013 MorphTool An interactive environment for morphologically operating on images. Author: Brett Shoelson Shoelson, Brett

@Amarjot:
In R2009b, we allowed the use of a tilde to ignore unwanted function outputs:

[~,strelButtons,strelSliders] = StrelTool(strel1Parent);

If you're using an earlier version, you should 1) replace the tilde with a dummy variable (like "JUNK"); and 2) update your MATLAB!

Cheers,
Brett

26 Feb 2013 MorphTool An interactive environment for morphologically operating on images. Author: Brett Shoelson Shoelson, Brett

@Vinny:
narginck was added to MATLAB in R2011b. You can safely comment out that line, or replace it with:
nargchk(0,2,nargin)

(But you should upgrade! :) )
Cheers,
Brett

22 Feb 2013 MorphTool An interactive environment for morphologically operating on images. Author: Brett Shoelson Shoelson, Brett

@srinivasarao:
Sorry...not sure what paper you're talking about. This GUI agglomerates many of the morphological operations enabled through the Image Processing Toolbox, and allows interactive manipulation of all of their input parameters. There's no single paper to share.
Brett

22 Feb 2013 Recursive Directory Searching for Multiple File Specs Searches a directory for multiple file specs with optional recursivity Author: Jonathan Sullivan Shoelson, Brett

See here:
http://blogs.mathworks.com/pick/2013/02/15/recursive-directory-searching-for-multiple-file-specs-revisited/#comments

Excellent work!

15 Feb 2013 MorphTool An interactive environment for morphologically operating on images. Author: Brett Shoelson Shoelson, Brett

I should clarify my previous comment. BWHITMISS does not _require_ two strels, but it does allow a 2-strel syntax.
Brett

14 Feb 2013 MorphTool An interactive environment for morphologically operating on images. Author: Brett Shoelson Shoelson, Brett

Hi Anoosha,
Thanks for the rating! Some morphological operations (notably here, BWHITMISS) require the specification of two structuring elements. For the purposes of MorphTool, SE1 is read from StrelTool1, and SE2 is read from StrelTool2.
Cheers,
Brett

15 Oct 2012 FindCirclesGUI Launches a GUI environment for the detection of circles in an image. Author: Brett Shoelson Shoelson, Brett

Kyle, thanks for the rating. A waitbar is not really practical in this case--there's no for loop. Just an accumulator that runs until it's done. (How long are your calculations taking, though?)

10 Aug 2012 clusterData Clusters an MxN array of data into an unspecified number (P) of bins. Author: Brett Shoelson Shoelson, Brett

PLEASE NOTE that this code uses tildes for argument placeholders. As such, it will not work without modification on releases prior to R2009b. Feel free to edit the code, or upgrade to a newer MATLAB!!!

14 Jul 2012 MorphTool An interactive environment for morphologically operating on images. Author: Brett Shoelson Shoelson, Brett

Caleb: I believe that the zip file creates a subdirectory that contains the helper files (including tabPanel). Please either drag them out of that folder, or add the folder to your MATLAB path and try again!

22 Jun 2012 showcontextmenu Simple way to show contextmenu on left click in a nice drop-down way. Author: Igor Shoelson, Brett

I haven't tried this yet, Igor, though it looks interesting. I'm intrigued by your use of normalized units, and of the steps you had to take to make this all work in them. (I'm a fan of normalized units, too, and have done similar things.)

Also, I wanted to point out that FINDALL (as opposed to FINDOBJ) returns all children of a specified object, including those whose handles are hidden.

11 Jun 2012 Image Registration GUI GUI environment for registering a Moving image to a Fixed image Author: Brett Shoelson Shoelson, Brett

@John:
Thanks for the feedback, John. ImageRegistrationGUI was designed to expose and allow control over every possible input to the new IMREGISTER function, and to show interactively the results of changing those inputs. Internally, IMREGISTER generates a TFORM (which is appropriate for use in a call to IMTRANSFORM, exactly as is a tform generated with CP2TFORM); internally, in fact, IMREGISTER _uses_ IMTRANSFORM. The TFORM structure is not currently provided as an output, but if you modified the syntax of the function, you could easily avail yourself of that TFORM.
The <http://www.mathworks.com/help/releases/R2012a/toolbox/images/f20-14983.html#f20-23425 CPSELECT> tool does have a "point prediction" mode.
HTH, Brett

28 May 2012 Image Registration GUI GUI environment for registering a Moving image to a Fixed image Author: Brett Shoelson Shoelson, Brett

Ray, IMSHOWPAIR (like IMREGISTER) is in the Image Processing Toolbox in R2012a. (See "requirements" above.) Compelling reason to upgrade... :)

15 Apr 2012 markPoints Manually mark and count objects in an image. Author: Brett Shoelson Shoelson, Brett

Lasse, your feedback isn't very helpful to me. I use this function frequently, and can assure you that it _does_ work. Perhaps you can tell me why you think it's not working, or why it's buggy, and let me take a look?

This file has been downloaded hundreds of times. Is anyone else finding it to be buggy or nonfunctional? If there are bugs to be fixed or improvements to be made, I'd like the opportunity to fix/make them.

Thanks! Brett

12 Apr 2012 readfromexcel Returns values in multiple ranges of existing Excel file. Author: Brett Shoelson Shoelson, Brett

Hi Woody. I am not a Simulink expert, but my guess is that my usage of varargin and varargout might cause some problems with that platform. If you tweak the function syntax to have fixed inputs and outputs matching your needs, I think it should work.
Cheers,
Brett

11 Apr 2012 expandAxes Click any axes to expand it in a separate figure. Right-click expanded axes to export contents! Author: Brett Shoelson Shoelson, Brett

NOTE: Maryam also asked me if she could modify the tick marks on the pop-up axis. That, too, is easily done. Just make whatever changes you want to customize new_ax at the appropriate place in the code. For instance:

set(new_ax,'units','normalized',...
'position',[0.1 0.1 0.8 0.8],...
'xtickmode','auto','ytickmode','auto');

Cheers,
Brett

10 Apr 2012 expandAxes Click any axes to expand it in a separate figure. Right-click expanded axes to export contents! Author: Brett Shoelson Shoelson, Brett

Maryam, it's very easy to make expandAxes do what you want. Just modify the single line in subfunction "exapandIt" where I create the figure. Change 'menubar','none' to 'menubar','figure'. Let me know if that works for you.
Cheers,
Brett

31 Mar 2012 readfromexcel Returns values in multiple ranges of existing Excel file. Author: Brett Shoelson Shoelson, Brett

Thanks for the suggestion, Image Analyst. Would you try out my XLSAppend submission and let me know if that addresses your needs?
Thanks,
Brett

16 Mar 2012 1D Bifurcation plot This is a very nice and compact file for generating 1D bifurcation plot. Author: Yue Wu Shoelson, Brett

Yue,
Consider generating a Dependency Report (you can use the "Tools->Save and Show Dependency Report" functionality in the toolbar of MATLAB's Editor Window, or you can use |depfun|) to learn what Toolboxes your function calls.
Regards,
Brett

29 Feb 2012 MorphTool An interactive environment for morphologically operating on images. Author: Brett Shoelson Shoelson, Brett

Hi Bella,
Can you tell me how to recreate the error you're seeing? I never assigned a callback to a uipanel, nor have I seen that particular error. Is it reproducible? How can I trigger it (so I can figure out what's going on)? And what does "I have put the files outside the folder" mean? (I wonder if this is a path issue.)
Cheers,
Brett

27 Feb 2012 MorphTool An interactive environment for morphologically operating on images. Author: Brett Shoelson Shoelson, Brett

Parth,
Can you give me some details about your MATLAB? Do you have the Image Processing Toolbox? What version of MATLAB are you using?
Thanks...Brett

12 Jan 2012 draggable Allows graphical objects to be dragged in a figure. Author: Francois Bouffard Shoelson, Brett

Most excellent work...rock solid!

25 Oct 2011 MorphTool An interactive environment for morphologically operating on images. Author: Brett Shoelson Shoelson, Brett

recep, Kelly, et al: I see what's happening now. I provided auxiliary files in a folder, assuming that they would be put on your MATLAB path. You can either add those folders manually to the path, or drag the files out of the folders, or issue this (or equivalent) command:

addpath(genpath(fileparts(which('MorphTool.m'))))

Let me know if that addresses the issue, please.

25 Oct 2011 MorphTool An interactive environment for morphologically operating on images. Author: Brett Shoelson Shoelson, Brett

@recep and Kelly: Would you please verify that you have the latest version, and that it came with the TabPanel function? If not, please grab the new version. If so, it would help if you could tell me reproduction steps that trigger the problem.
Thanks, Brett

27 Sep 2011 MorphTool An interactive environment for morphologically operating on images. Author: Brett Shoelson Shoelson, Brett

Please try again; I believe that the current version includes all the files you need to run this. (Please let me know if there are any additional issues with MorphTool...).
Thanks, Bret

23 Sep 2011 MorphTool An interactive environment for morphologically operating on images. Author: Brett Shoelson Shoelson, Brett

@Kelly and YAZ (and others):

Thanks to you both. I just figured out that you are using a version of MATLAB that predates R2009b. (Correct?) I use tildes to ignore unwanted arguments; that capability was introduced in '9b.) TO FIX THIS: Either upgrade to a newer MATLAB ;), or replace the tildes in my code with some word like "junk." That should do it!

06 Sep 2011 MorphTool An interactive environment for morphologically operating on images. Author: Brett Shoelson Shoelson, Brett

@YAZ
Is it possible that you accidentally backspaced and deleted something? I don't see any indication of an unbalanced parenthesis in that file. Would you re-download and verify the error, and let me know if you still see it, please?
Thanks,
Brett

19 Aug 2011 MorphTool An interactive environment for morphologically operating on images. Author: Brett Shoelson Shoelson, Brett

Bojan, Jonas: Should be good to go now...please re-try! Thanks for the heads up.

19 Aug 2011 MorphTool An interactive environment for morphologically operating on images. Author: Brett Shoelson Shoelson, Brett

Give me a few minutes, Bojan and Jonas. I accidentally omitted that file when I updated. Working on it.

27 Jun 2011 lombscargle.m Performs a Lomb-Scargle periodogram analysis on unevenly spaced data. Author: Brett Shoelson Shoelson, Brett

Hi all,
Unfortunately, I am unable to support this piece of code. I wrote it VERY long ago, haven't touched it in a long time. The best I can do is (re-)steer you to the reference cited above. As for the calibration, that's my own implementation, and I don't know exactly how mathematically "rigorous" the idea is. The amplitude of peaks in the spectrum is only relevant relative to the amplitudes of other peaks. My thought was to add to the data a stationary signal of a know amplitude and frequency. The resulting "reference peak" would help to scale, or "calibrate," the spectrum of the data.
Cheers,
Brett

26 Apr 2011 nancumprod Compute the cumulative product of matrices, specifying the treatment of NaNs. Author: Brett Shoelson Shoelson, Brett

Rick, I see now what you mean. I will circle back around to fix this case and re-post--as soon as I can get to it! :)
Thanks for the comments!
Brett

08 Apr 2011 freehanddraw Draw smooth lines freehand on images or plots; return the handle and xy data of the line object. Author: Brett Shoelson Shoelson, Brett

AA,
IMFREEHAND didn't exist when I wrote FREEHANDDRAW. I'm happy to see that you're using the new Toolbox functionality!

04 Apr 2011 nancumprod Compute the cumulative product of matrices, specifying the treatment of NaNs. Author: Brett Shoelson Shoelson, Brett

Rick,
Thanks for the comment, though I'm not really sure I understand it. Are you suggesting that I do away with option 2 and force it to be treated like option 1?

01 Apr 2011 zoom2cursor Dynamic, scalable zoom following the motion of the cursor; also displays the current position. Author: Brett Shoelson Shoelson, Brett

Thanks for all the feedback.... Regarding EXIT functionality, doesn't clicking on the "x" (lower left) suffice?

18 Feb 2011 expandAxes Click any axes to expand it in a separate figure. Right-click expanded axes to export contents! Author: Brett Shoelson Shoelson, Brett

Thanks, Adi. For users of older versions of MATLAB, please note the single quotes around 'isempty' in Adi's comments.

13 Jan 2011 AFM Image Analysis Atomic Force Microscopy Image Analysis Author: Prashant Patil Shoelson, Brett

Prashant,
I understand; I worked with AFM images for 5 years, and know that there may be information/regions in them that you want to suppress. I was really questioning why you suggest suppressing or removing them with Paint rather than with MATLAB.

Contact us