Senior Scientist and Inventor in one of the world's 10 largest industrial corporations doing image analysis full time. Ph.D. in Optical Sciences specializing in imaging, image processing, and image analysis. 40+ years of military, academic, and (mostly) industrial experience with image analysis programming and algorithm development. Experience designing custom light booths and other imaging systems. Experience with color and monochrome imaging, video analysis, thermal, ultraviolet, hyperspectral, CT, MRI, radiography, profilometry, microscopy, NIR and Raman spectroscopy, etc. on a huge variety of subjects. Be sure to click "View All" in my File Exchange to see ALL of my demos and tutorials: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862

Professional Interests: Image analysis and processing

Answered

how do i write this equation in live script

What does sin3(θ) 2 mean? Tell us in words because there is no sin3() function. Try theta = linspace(-pi, pi, 1000); f = si...

how do i write this equation in live script

What does sin3(θ) 2 mean? Tell us in words because there is no sin3() function. Try theta = linspace(-pi, pi, 1000); f = si...

alrededor de 4 horas ago | 0

Answered

How I can I find the minimum and maximum distance between two freehand lines on a dicom image?

You need to get the distances for each point, then take the min and max. Let's say you have two lines with coordinates x1, and ...

How I can I find the minimum and maximum distance between two freehand lines on a dicom image?

You need to get the distances for each point, then take the min and max. Let's say you have two lines with coordinates x1, and ...

alrededor de 4 horas ago | 0

Answered

Something like reshape but accounting for missing values

Perhaps fillmissing()? Or scatteredInterpolant()? (Dee attached demo.)

Something like reshape but accounting for missing values

Perhaps fillmissing()? Or scatteredInterpolant()? (Dee attached demo.)

alrededor de 10 horas ago | 0

Answered

To find rotational axis of an incomplete point cloud

I'd use pca() to find the 3 principal axes. You can then rotate the cloud so that the 3rd principal axis lines up with the z di...

To find rotational axis of an incomplete point cloud

I'd use pca() to find the 3 principal axes. You can then rotate the cloud so that the 3rd principal axis lines up with the z di...

alrededor de 13 horas ago | 0

| accepted

Answered

two dim fft matlab

That doesn't make sense. You don't want to take the Fourier transform of the location/position of the signal. Just do the ampl...

two dim fft matlab

That doesn't make sense. You don't want to take the Fourier transform of the location/position of the signal. Just do the ampl...

alrededor de 13 horas ago | 0

Answered

Remove outlier pixels after edge detection

You can just scan across and find if the distance between the top point and the bottom point is too much, like more than 50 line...

Remove outlier pixels after edge detection

You can just scan across and find if the distance between the top point and the bottom point is too much, like more than 50 line...

alrededor de 15 horas ago | 0

Answered

how to find the angle in an image like this ?

What I would do is to first call bwareaopen() to remove small noise. Then scan down row by row to get the left and right column...

how to find the angle in an image like this ?

What I would do is to first call bwareaopen() to remove small noise. Then scan down row by row to get the left and right column...

alrededor de 15 horas ago | 1

| accepted

Answered

Writing processed image into new image not working as expected

You can try imshow(I, []); though if your image is double, and all the other pixels are in the range 0-1, all the other pixels...

Writing processed image into new image not working as expected

You can try imshow(I, []); though if your image is double, and all the other pixels are in the range 0-1, all the other pixels...

alrededor de 15 horas ago | 0

Answered

How to generate all possible ways of dividing up the numbers from 1 to 46 into three groups?

You cannot do that. This would be the command: combinations = perms(1:46); and then you could generate 3 indexes, at least 5 ...

How to generate all possible ways of dividing up the numbers from 1 to 46 into three groups?

You cannot do that. This would be the command: combinations = perms(1:46); and then you could generate 3 indexes, at least 5 ...

alrededor de 15 horas ago | 1

Answered

How do i get my code to read the updated csv table instead of the old table?

You need to assign A(i, k) the corrected value. Then, after the loop once, all A(i, k) have been inspected and corrected (if ne...

How do i get my code to read the updated csv table instead of the old table?

You need to assign A(i, k) the corrected value. Then, after the loop once, all A(i, k) have been inspected and corrected (if ne...

alrededor de 16 horas ago | 0

| accepted

Answered

Extracting second number after comma within parenthesis

If your format is fixed (the same every time), you can do it much, much more simply, and less cryptically, by avoiding regexp() ...

Extracting second number after comma within parenthesis

If your format is fixed (the same every time), you can do it much, much more simply, and less cryptically, by avoiding regexp() ...

alrededor de 16 horas ago | 0

Answered

Measuring the width and hight for smallest Bounding Boxes of detected objects

If you want boxes aligned with the image edges, then use regionprops() and ask for 'BoundingBox'. If you want boxes at any angl...

Measuring the width and hight for smallest Bounding Boxes of detected objects

If you want boxes aligned with the image edges, then use regionprops() and ask for 'BoundingBox'. If you want boxes at any angl...

alrededor de 16 horas ago | 0

Answered

Blank figures using plot

Try this: clc clear all close all c1 = 3.74*10^8; c2 = 1.44*10^4; T1 = 30; T2 = 90; T3 = 120; a1 = 0; a2 = 0; a3 = 0;...

Blank figures using plot

Try this: clc clear all close all c1 = 3.74*10^8; c2 = 1.44*10^4; T1 = 30; T2 = 90; T3 = 120; a1 = 0; a2 = 0; a3 = 0;...

1 día ago | 0

| accepted

Answered

How to create a best fit line for data with an aymptote?

How about if you just fit a line to the last N points? Like N=20 or N = 10% of the total width or whatever. Or you can figure ...

How to create a best fit line for data with an aymptote?

How about if you just fit a line to the last N points? Like N=20 or N = 10% of the total width or whatever. Or you can figure ...

1 día ago | 0

Answered

how to resize different matrices

The numbers and the strings will have different upper left locations in your variables. For example, if you have string row hea...

how to resize different matrices

The numbers and the strings will have different upper left locations in your variables. For example, if you have string row hea...

1 día ago | 0

Answered

Don't know how to make the loop works with variable

It says Unrecognized function or variable 'Sxt'. Error in test (line 5) if (Sxt/Sxc >= 0.7) so that means that before that ...

Don't know how to make the loop works with variable

It says Unrecognized function or variable 'Sxt'. Error in test (line 5) if (Sxt/Sxc >= 0.7) so that means that before that ...

1 día ago | 1

Answered

Change axis colour matlab

Try this, where I change several properties. There are lots more things you can tweak individually, just click the "See all pro...

Change axis colour matlab

Try this, where I change several properties. There are lots more things you can tweak individually, just click the "See all pro...

1 día ago | 1

Answered

remove boundary contours from the image

Do you know the diameter of the inner circle? If so, just use the FAQ to create a circle mask, and mask it away mask(circleMas...

remove boundary contours from the image

Do you know the diameter of the inner circle? If so, just use the FAQ to create a circle mask, and mask it away mask(circleMas...

1 día ago | 0

Answered

How to access left bottom pixel in image using (0,0)?

Just make a function and use the function name instead of the variable name. To make it even simpler you can avoid passing in t...

How to access left bottom pixel in image using (0,0)?

Just make a function and use the function name instead of the variable name. To make it even simpler you can avoid passing in t...

1 día ago | 0

Answered

connecting 2 object that separately but their location is close ?

To connect regions, you can use imclose() mask = imclose(mask, true(9)); % Vary the 9 to connect more or less close regions. T...

connecting 2 object that separately but their location is close ?

To connect regions, you can use imclose() mask = imclose(mask, true(9)); % Vary the 9 to connect more or less close regions. T...

1 día ago | 0

Answered

Matlab Image Cropping problem

Attach your cameraman.tif. Evidently you changed the one that ships with MATLAB because that one is not a color image and your ...

Matlab Image Cropping problem

Attach your cameraman.tif. Evidently you changed the one that ships with MATLAB because that one is not a color image and your ...

2 días ago | 0

| accepted

Answered

create a vector without for

Try a = 1 : 10 b = 1 : 10 ... j = 1 : 5 outputVector = [a, b, c, d, e, f, g, h, i, j]

create a vector without for

Try a = 1 : 10 b = 1 : 10 ... j = 1 : 5 outputVector = [a, b, c, d, e, f, g, h, i, j]

2 días ago | 0

Answered

How to append fields of a structure from different/many script file?

If you want network to have the "node" field you modified inside of the app() function, then you need to return network from the...

How to append fields of a structure from different/many script file?

If you want network to have the "node" field you modified inside of the app() function, then you need to return network from the...

2 días ago | 0

| accepted

Answered

How can I turn the following code to a surface plot

Use surf() surf(X(:,1), X(:,2), X(:,3), 'EdgeColor', 'none'); If that doesn't work, attach your X, Y, E, F, and k in a .mat fi...

How can I turn the following code to a surface plot

Use surf() surf(X(:,1), X(:,2), X(:,3), 'EdgeColor', 'none'); If that doesn't work, attach your X, Y, E, F, and k in a .mat fi...

3 días ago | 0

Answered

How to prevent addition from showing up in command window

Try this: numberOfTerms = 10; maxIterations = 1000000; % To prevent infinite loops. loopCounter = 1; theError = 1; while th...

How to prevent addition from showing up in command window

Try this: numberOfTerms = 10; maxIterations = 1000000; % To prevent infinite loops. loopCounter = 1; theError = 1; while th...

3 días ago | 0

Answered

RMSE between original and predicted values.

Without any other information, the maximum likelihood prediction for every element would be the mean of the entire signal. But ...

RMSE between original and predicted values.

Without any other information, the maximum likelihood prediction for every element would be the mean of the entire signal. But ...

3 días ago | 0

Answered

Interpolate 1 array to another

If you have the Image Processsing Toolbox, use imresize(): array1NewSize = imresize(array1, size(array2));

Interpolate 1 array to another

If you have the Image Processsing Toolbox, use imresize(): array1NewSize = imresize(array1, size(array2));

3 días ago | 0

Answered

Multiple Linear Regression using fitlm function

Why not do coefficients = y \ x; where y and x are tall matrices that have your observation values listed? (Or maybe it's y/x...

Multiple Linear Regression using fitlm function

Why not do coefficients = y \ x; where y and x are tall matrices that have your observation values listed? (Or maybe it's y/x...

3 días ago | 1

Answered

How to apply thresholding at different parts of an image?

I think this is simply a labeling problem so you can use the built-in function bwlabel(). You said you have a threshold for eve...

How to apply thresholding at different parts of an image?

I think this is simply a labeling problem so you can use the built-in function bwlabel(). You said you have a threshold for eve...

3 días ago | 0

Answered

How to call variable (with index) using string?

Ignoring the probably bad idea that these are variable names that you will refer to later and try to use (because I'm sure Steph...

How to call variable (with index) using string?

Ignoring the probably bad idea that these are variable names that you will refer to later and try to use (because I'm sure Steph...

3 días ago | 0