Rank: 10 based on 2590 downloads (last 30 days) and 73 files submitted
photo

Brett Shoelson

E-mail
Company/University
MathWorks
Lat/Long
38.87423, -77.13025

Personal Profile:

I'm a biomedical engineer by training, but I love MATLAB and have worked as a Principal Application Engineer for MathWorks since 2005.


 

Watch this Author's files

 

Files Posted by Brett Shoelson View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
17 Dec 2014 Screenshot Convert Position Vectors to Vertices, and Vice Versa! A utility function to convert between rectangular position [x y w h] and vertices [x; y] Author: Brett Shoelson conversion, rectangular region, roi, rectangle 18 0
21 Nov 2014 Screenshot Text Recognizer Easily perform Optical Character Recognition (OCR) on your images! Author: Brett Shoelson ocr, text recognition, app, application, character recognition 137 0
21 Nov 2014 FAST, PROGRAMMATIC string searching in directories of MATLAB code files VERY FAST Command-Line searching for text contained in MATLAB code files. Author: Brett Shoelson search code, find files, grep, fast search, matlab code 21 3
  • 5.0
5.0 | 1 rating
14 Nov 2014 Screenshot exploreRGB Simple utility to view all color planes, grayscale, and colorspace conversions of an RGB image. Author: Brett Shoelson circularhough_grd_sl, explore rgb color pla..., rgb, color 87 15
  • 4.0
4.0 | 7 ratings
10 Nov 2014 Screenshot iscoplanar.m Tests input points for coplanarity in 3-space. Author: Brett Shoelson linear algebra, coplanarity, input points, column vectors, tolerance, planar 11 1
  • 3.0
3.0 | 1 rating
Comments and Ratings by Brett Shoelson View all
Updated File Comments Rating
24 Dec 2014 edfRead A simple file reader for European Data Formatted (EDF-) files. Author: Brett Shoelson

@Alexander,

Your file is “corrupt” in that it contains an invalid records specification:

hdr.records = -1;

The EDF+ spec states in section 2.1.2 that:

10. The 'number of data records' can only be -1 during recording. As soon as the file is closed, the correct number is known and must be entered.

My code uses that value to read the data.

(NOTE: I wrote an alternate version that ignores hdr.records and reads data in a while loop until done. I shared that code with Alex and verified that it reads his data correctly. If anyone else encounters this issue and would like my "edfreadUntilDone" function, please email me; I'm happy to share it. I'm also curious to hear if anyone else is seeing the hdr.records == -1 issue, and in trying to figure out why.)

16 Dec 2014 Image Registration App UI environment for registering a Moving image to a Fixed image Author: Brett Shoelson

@Shirin,
Thanks for the rating. I guess I would still call this an intensity-based segmentation, unless you are extracting properties of the regions (centers, radii) and using some algorithm to match. In this case your intensities are binary-valued, but they're still intensities.
Brett

09 Dec 2014 edfRead A simple file reader for European Data Formatted (EDF-) files. Author: Brett Shoelson

@bahareh:
That section of the code should be run iff you a) specify more than one output (i.e., if you request that the data be returned, and not just the header info); or b) you pass in the optional PV pair: 'assignToVariables',true.

I wrote it that way so you can quickly (and inexpensively) capture the header information if that's all you need, or you can trigger a full data extraction.

Cheers,
Brett

03 Dec 2014 edfRead A simple file reader for European Data Formatted (EDF-) files. Author: Brett Shoelson

@Arathi:
What happens if you simply type
>>data = edfread('abc.edf');
?
Brett

22 Nov 2014 FAST, PROGRAMMATIC string searching in directories of MATLAB code files VERY FAST Command-Line searching for text contained in MATLAB code files. Author: Brett Shoelson

@Jan: Absolutely great question-indeed one that I asked too! Currently, because the userpath function lives in the local toolbox (which can be modified by users), it is treated carefully and distinctly by the matlab.codetools.requiredFilesAndProducts function. If one uses userpath, it is recognized as a dependency by requiredFilesAndProducts. In the Apps packager, there is not currently a way for me to remove auto-detected dependencies. I'm hoping we can figure out a better way to deal with that...but I'm stuck packaging it with my submission at the moment. Very perceptive question! Brett

Comments and Ratings on Brett Shoelson's Files View all
Updated File Comment by Comments Rating
24 Dec 2014 edfRead A simple file reader for European Data Formatted (EDF-) files. Author: Brett Shoelson Brett Shoelson

@Alexander,

Your file is “corrupt” in that it contains an invalid records specification:

hdr.records = -1;

The EDF+ spec states in section 2.1.2 that:

10. The 'number of data records' can only be -1 during recording. As soon as the file is closed, the correct number is known and must be entered.

My code uses that value to read the data.

(NOTE: I wrote an alternate version that ignores hdr.records and reads data in a while loop until done. I shared that code with Alex and verified that it reads his data correctly. If anyone else encounters this issue and would like my "edfreadUntilDone" function, please email me; I'm happy to share it. I'm also curious to hear if anyone else is seeing the hdr.records == -1 issue, and in trying to figure out why.)

16 Dec 2014 Image Registration App UI environment for registering a Moving image to a Fixed image Author: Brett Shoelson Brett Shoelson

@Shirin,
Thanks for the rating. I guess I would still call this an intensity-based segmentation, unless you are extracting properties of the regions (centers, radii) and using some algorithm to match. In this case your intensities are binary-valued, but they're still intensities.
Brett

16 Dec 2014 Image Registration App UI environment for registering a Moving image to a Fixed image Author: Brett Shoelson Shirin

Dear Brett,

I have 2 images which they contain a circle.
First, I segmented the circle in both images, then apply your registration app to register them.

My question is, what will be the name of my registration?

* Intensity-based?
* Feature-based?
* Segmentation-based?

Since, my images are "black & white", I think I cannot name it "intensity-based", right?

Thank you
Regards,
Shirin

14 Dec 2014 edfRead A simple file reader for European Data Formatted (EDF-) files. Author: Brett Shoelson Alexander Melamud

Dear Brett Shoelson,

I tried to use your file, it works partially. It opens only header part and do not see the data at all.
I run:
G1 = edfread('sample1.edf')

and I get:
Step 1 of 2: Reading requested records. (This may take a few minutes.)...

And after:

G1 =

ver: 0
patientID: 'Bentz James 13.01.1964 ...'
recordID: '????????????e ...'
startdate: '08.02.08'
starttime: '22.42.36'
bytes: 4608
records: -1
duration: 10
ns: 17
label: {1x17 cell}
transducer: {1x17 cell}
units: {1x17 cell}
physicalMin: [1x17 double]
physicalMax: [1x17 double]
digitalMin: [1x17 double]
digitalMax: [1x17 double]
prefilter: {1x17 cell}
samples: [1x17 double]

Could you help?
Thanks a lot

09 Dec 2014 edfRead A simple file reader for European Data Formatted (EDF-) files. Author: Brett Shoelson Brett Shoelson

@bahareh:
That section of the code should be run iff you a) specify more than one output (i.e., if you request that the data be returned, and not just the header info); or b) you pass in the optional PV pair: 'assignToVariables',true.

I wrote it that way so you can quickly (and inexpensively) capture the header information if that's all you need, or you can trigger a full data extraction.

Cheers,
Brett

Contact us