# Brett Shoelson

### MathWorks

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

Professional Interests: (medical) image processing, computer vision, algorithm development, ui development, artificial intelligence (machine- and deep learning).

**Statistics**

RANK**466**

of 249,858

REPUTATION**132**

CONTRIBUTIONS

**0** Questions

**67** Answers

ANSWER ACCEPTANCE **
0.00%
**

VOTES RECEIVED**29**

RANK**9** of 17,366

REPUTATION**41,114**

AVERAGE RATING**4.60**

CONTRIBUTIONS**95** Files

DOWNLOADS **705**

ALL TIME DOWNLOADS**386340**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

Getting many outputs using blockproc

Walter is correct that blockproc returns a single output. For clarity, though, it's worth pointing out that you can make n separ...

4 years ago | 0

Skeleton prunning for OCR

Radek: yes, the longest-constrained-path approach I gave you is indeed confounded by loops. On the other hand, did you try infin...

6 years ago | 0

Skeleton prunning for OCR

Hi Radek, I have some thoughts to share that might be useful. First, recognize that you get different output from infinite thin...

6 years ago | 2

| accepted

Can WE PLOT A TRANSPARENT LINE OVER A SPECTROGRAM IN MATLAB????

Consider using "PATCHLINE" from the File Exchange. Cheers, Brett

8 years ago | 0

Training Custom Classification Model XML creation

Samir, Start here: http://www.mathworks.com/help/vision/ug/train-a-cascade-object-detector.html and then download and use ...

8 years ago | 0

How to create "Trained cascade classification model" like Frontal Face (CART), Upper Body

Kalla, I would suggest that you read the document Anand steered you to, and then download CascadeTrainGUI from the File Exchange...

8 years ago | 0

imhist for an spm image

I might suggest that you look at the documentation for IMADJUST. It's made for this. In fact, Image Analyst, after you created y...

9 years ago | 0

Sorting a 2d matrix according to the distance between each successive point.

Eoin, I'm not sure what those three non-zero values refer to, since I can't see your code. But if the object you are interested ...

11 years ago | 0

Passing array to a function

You'll need to show us a bit more. It would be particularly useful, for instance, to see line 71 of getFreq. Consider puttin...

11 years ago | 0

fitting the equation on a graph and finding unknown parametrs

You've gotta love the <http://www.mathworks.com/access/helpdesk/help/toolbox/curvefit/curvefit_product_page.html Curve-Fitting T...

11 years ago | 0

Can anyone plz help me segment vein pattern from a thresholded dorsal palm image????

Take a look at BWMORPH. It allows you to calculate the skeleton of your image. From that result, you can calculate branch points...

11 years ago | 0

| accepted

How do i write a function containing a loop for two vectors?

Sorry, Jenny. Change those a's to s's. Brett

11 years ago | 0

Is there any data loss when i convert my dicom image to any other format???

If you save your image in a lossless format, the conversion is lossless. Otherwise, not necessarily. Are you converting with imr...

11 years ago | 0

| accepted

How do i write a function containing a loop for two vectors?

I can tell you _how_ to discard your outliers, but I can't tell you if you _should_. (Is that what you're asking?) I would gu...

11 years ago | 0

How do i write a function containing a loop for two vectors?

Jenny, why on earth would you want to write that in a loop?(Is that a homework assignment?) And do you really need to calculate ...

11 years ago | 0

Sorting a 2d matrix according to the distance between each successive point.

Yes! Try this instead: stats = regionprops(cut_surface,'perimeter'); perims = [stats.Perimeter]; That will give...

11 years ago | 0

Problem working with 3-D image matrix

Here's another approach, just for fun: start = imread(g); multCol = reshape(repmat([4 1 0],ceil(size(start,1)/3),1),[],1)...

11 years ago | 0

Problem working with 3-D image matrix

Well, if you want to chop your image into thirds and it doesn't divide equally into three bins, then YOU have to decide how to c...

11 years ago | 0

Outward pointing normal vectors on a triangle

Are you familiar with the QUIVER command? Brett

11 years ago | 0

Sorting a 2d matrix according to the distance between each successive point.

Do you have the Image Processing Toolbox? Consider using REGIONPROPS, and requesting the PERIMETER of the region. Cheers, Br...

11 years ago | 0

Eliminating different regions based on height/width ratio calculated by boundingbox

You can also use the 'Eccentricity' property returned by REGIONPROPS. Eccentricity give the ratio of the major axis length to th...

11 years ago | 0

automatic resize of one graph using subplot function

Or you can just set the x- and (or) y-limits to be manual after you create your individual plots. (The default is 'automatic'.):...

11 years ago | 0

Accessing Workspace variables

Sorry, Erik. I didn't read your question carefully enough. Try this: eval(b(ii).name) Brett

11 years ago | 2

| accepted

Problem working with 3-D image matrix

I'm not sure what you mean by "does not work for an image that has a decimal value after a divided three-dimensional." But I ...

11 years ago | 0

| accepted

Accessing Workspace variables

A = whos; for ii = 1:numel(A) A(ii).name end Cheers, Brett

11 years ago | 1

Separating Objects in an Image

I agree with Walter about the depth ambiguity, but I think you still might be able to get reasonably good results with this imag...

11 years ago | 1

identifying positions of a string within a text file

Lots of ways. This one uses regular expressions: mystr = 'line $$ 1 $$ line 2' newstr = regexprep(mystr,'\$\$','New_Stri...

11 years ago | 0

over lap image onto another image??

Consider: a = magic(7) b = rand(2,3) a(3:4,4:6) = b % Or, more generally,: startrow = 3; startcol = 4; ...

11 years ago | 0

| accepted

Image Processing (related to image comparison)

Once you've segmented your regions of corrosion, the function REGIONPROPS will be quite useful!

11 years ago | 0

Issue with fractional step-sizes

y(1) refers to the first element of y. y(2) is its second element. What does y(1.5) refer to? Your problem is in your use of ...

11 years ago | 1