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

Removing Short Runs from Binary Data

There is a built-in function for this, if you have the Image Processing Toolbox. Two functions actually. You can use bwareafil...

Removing Short Runs from Binary Data

There is a built-in function for this, if you have the Image Processing Toolbox. Two functions actually. You can use bwareafil...

circa un'ora ago | 0

Answered

K-Means Matlab cluster assignment

Anastasis, below is a full demo of how to sort the labels according to how far the cluster centroid is from the origin, and how ...

K-Means Matlab cluster assignment

Anastasis, below is a full demo of how to sort the labels according to how far the cluster centroid is from the origin, and how ...

circa 5 ore ago | 0

| accepted

Answered

How to create an object using class name

That won't work for all types of objects, like structures, other custom-designed classes, etc. I think your best bet is to just...

How to create an object using class name

That won't work for all types of objects, like structures, other custom-designed classes, etc. I think your best bet is to just...

1 giorno ago | 0

Answered

how to assign certain range of pixel values with desired color for classification of image?

Try imoverlay() to overlay your segmented/masked image over your original.

how to assign certain range of pixel values with desired color for classification of image?

Try imoverlay() to overlay your segmented/masked image over your original.

3 giorni ago | 2

Answered

Removing unwanted components in a binary image?

You need to define what you want. For example, do you want just the largest blob with bwareafilt(bw, 1)? Or blobs larger than ...

Removing unwanted components in a binary image?

You need to define what you want. For example, do you want just the largest blob with bwareafilt(bw, 1)? Or blobs larger than ...

3 giorni ago | 0

Answered

How to generate a fixed number of float numbers and their sum is a fixed float number?

See this File Exchange submission: randfixedsum (click here)

How to generate a fixed number of float numbers and their sum is a fixed float number?

See this File Exchange submission: randfixedsum (click here)

3 giorni ago | 0

| accepted

Answered

How to plot graph for below mention mathamatical equation

Try this: BSI = 1; % Just a guess since it was not specified. % Define other constants that were given in the question. A = 0...

How to plot graph for below mention mathamatical equation

Try this: BSI = 1; % Just a guess since it was not specified. % Define other constants that were given in the question. A = 0...

3 giorni ago | 0

Answered

3 Way Table In Matlab

With fprintf() you can make the table look as much like that as ASCII characters possibly can. For example fprintf('| |...

3 Way Table In Matlab

With fprintf() you can make the table look as much like that as ASCII characters possibly can. For example fprintf('| |...

3 giorni ago | 0

Answered

How to call function for every iteration of the for loop

Try indexing f to put the f1 and f2 on different rows: f(j, 1:2) = [f1 f2]; assuming f1 and f2 are scalars, not vectors

How to call function for every iteration of the for loop

Try indexing f to put the f1 and f2 on different rows: f(j, 1:2) = [f1 f2]; assuming f1 and f2 are scalars, not vectors

3 giorni ago | 0

Answered

Hello, I don't understand why my activation key doesn't work. I bought a student license this morning for 69 € with 14 € tax. Why ?

Try the second radio button instead. Or else call the Mathworks for help. Generally we don't offer much help for installation,...

Hello, I don't understand why my activation key doesn't work. I bought a student license this morning for 69 € with 14 € tax. Why ?

Try the second radio button instead. Or else call the Mathworks for help. Generally we don't offer much help for installation,...

3 giorni ago | 0

Answered

I need help on small code

Your binomialpmf() function is not in your current folder or one your search path. Did you mean binomialpdf - perhaps you missp...

I need help on small code

Your binomialpmf() function is not in your current folder or one your search path. Did you mean binomialpdf - perhaps you missp...

3 giorni ago | 0

Answered

How can I make a single filter using MATLAB code to get galaxy image to be negative image so that dim parts of the original image are bright, and bright parts are dark?

Your for loop just undid what your d=255-a statement did. Simply do this d = 255 - a; imshow(d, []); without the for loop at...

How can I make a single filter using MATLAB code to get galaxy image to be negative image so that dim parts of the original image are bright, and bright parts are dark?

Your for loop just undid what your d=255-a statement did. Simply do this d = 255 - a; imshow(d, []); without the for loop at...

3 giorni ago | 1

Answered

I wrote a function for a math formula, may I ask you please check my code?

Assuming vertical bars mean absolute value and not modulus... You got C wrong. Try C = abs(x - abs((mean(x))); then you need...

I wrote a function for a math formula, may I ask you please check my code?

Assuming vertical bars mean absolute value and not modulus... You got C wrong. Try C = abs(x - abs((mean(x))); then you need...

4 giorni ago | 1

| accepted

Answered

How to use the load function to open and read a .txt file?

Sarah, The problem was that the file was not in the same folder as your script (if you were running an m-file) or your current f...

How to use the load function to open and read a .txt file?

Sarah, The problem was that the file was not in the same folder as your script (if you were running an m-file) or your current f...

4 giorni ago | 0

Answered

How do I store frames in a matrix and process them and then write them in file video?

That's what I do in these demos. Adapt as needed.

How do I store frames in a matrix and process them and then write them in file video?

That's what I do in these demos. Adapt as needed.

4 giorni ago | 0

Answered

ERROR installing 2019b

I'd click the Yes button. If that doesn't work, try the FAQ: During_installation.2C_the_installer_crashes.2C_hangs.2C_gives_an_...

ERROR installing 2019b

I'd click the Yes button. If that doesn't work, try the FAQ: During_installation.2C_the_installer_crashes.2C_hangs.2C_gives_an_...

4 giorni ago | 0

Answered

Create mask over image

To mask an image with a binary image, which will blacken the image outside where the mask is true: % Method to multiplication c...

Create mask over image

To mask an image with a binary image, which will blacken the image outside where the mask is true: % Method to multiplication c...

4 giorni ago | 0

Answered

How do I get values out of a scatter plot that are in between the data points

You could try spline() or interp1(). See attached demo. Red points are the original "knots" and the blue points are the inte...

How do I get values out of a scatter plot that are in between the data points

You could try spline() or interp1(). See attached demo. Red points are the original "knots" and the blue points are the inte...

4 giorni ago | 1

| accepted

Answered

I want to calculate m, b using the polyfit function over and over and over again.

Try this, where I plot b and m for all 100 trials, and do a scatterplot for trials 95 through 100, as you asked: % Initializati...

I want to calculate m, b using the polyfit function over and over and over again.

Try this, where I plot b and m for all 100 trials, and do a scatterplot for trials 95 through 100, as you asked: % Initializati...

4 giorni ago | 1

| accepted

Answered

Cross correlation at 0 lag between two time series data sets

Isn't that just what the first example in the documentation for xcorr() does? Did you see it? Also use corrcoeff() to get the ...

Cross correlation at 0 lag between two time series data sets

Isn't that just what the first example in the documentation for xcorr() does? Did you see it? Also use corrcoeff() to get the ...

4 giorni ago | 0

Answered

How to plot a graph? I'm getting a blank graph.

I'm not sure how long the loop takes, but it appears that it should take just milliseconds since I don't see any pause() command...

How to plot a graph? I'm getting a blank graph.

I'm not sure how long the loop takes, but it appears that it should take just milliseconds since I don't see any pause() command...

4 giorni ago | 0

| accepted

Answered

inexplicable GPU memory usage

I'm not sure if A gets converted to double after fft(), but you know that A will be complex and take up twice as much as a real ...

inexplicable GPU memory usage

I'm not sure if A gets converted to double after fft(), but you know that A will be complex and take up twice as much as a real ...

4 giorni ago | 0

Answered

Make .wav signals same size?

See the FAQ: How_can_I_process_a_sequence_of_files? The "dir()" version of the code is probably what you want. So do the loop ...

Make .wav signals same size?

See the FAQ: How_can_I_process_a_sequence_of_files? The "dir()" version of the code is probably what you want. So do the loop ...

5 giorni ago | 1

| accepted

Answered

the meaning of basic matlab words

Usually it's basically a variable that contains everything you need to interact with something, such as a graphical object displ...

the meaning of basic matlab words

Usually it's basically a variable that contains everything you need to interact with something, such as a graphical object displ...

6 giorni ago | 0

Answered

Filling in cell area and counting cells

You can use imfill() and bwareafilt() or bwareaopen(): mask = imfill(mask, 'holes'); % Fill holes. mask = bwareafilt(mask, [30...

Filling in cell area and counting cells

You can use imfill() and bwareafilt() or bwareaopen(): mask = imfill(mask, 'holes'); % Fill holes. mask = bwareafilt(mask, [30...

7 giorni ago | 0

Answered

How to Improve Accuracy Of Finding Circularity Algorithms?

You might want to try deep learning.

How to Improve Accuracy Of Finding Circularity Algorithms?

You might want to try deep learning.

8 giorni ago | 0

Answered

Chessboard , Euclidean and City Block distance simplest codes(functions) for all order of matrix that i can understand as i am student and at start of this language.

There is a function bwdist() that computes distances of different definitions. What data are you starting with? Like two (x,y)...

Chessboard , Euclidean and City Block distance simplest codes(functions) for all order of matrix that i can understand as i am student and at start of this language.

There is a function bwdist() that computes distances of different definitions. What data are you starting with? Like two (x,y)...

9 giorni ago | 0

Answered

Representing a pixel's color vector in 3D RGB space and transforming into 2D space

Did you try R = double(I(:,:,1)); G = double(I(:,:,2)); B = double(I(:,:,3)); C = (R + G + B) / 3; u = (2*C - G - B) ./ C; ...

Representing a pixel's color vector in 3D RGB space and transforming into 2D space

Did you try R = double(I(:,:,1)); G = double(I(:,:,2)); B = double(I(:,:,3)); C = (R + G + B) / 3; u = (2*C - G - B) ./ C; ...

9 giorni ago | 0

| accepted

Answered

how can I remove the regions in the edge map that are partially blocked along a line of sight of the centroid?

To get rid of the red and blue blobs, you need to identify which blob contains the right most, and top most, pixels. So simply ...

how can I remove the regions in the edge map that are partially blocked along a line of sight of the centroid?

To get rid of the red and blue blobs, you need to identify which blob contains the right most, and top most, pixels. So simply ...

10 giorni ago | 0

Answered

Smooth data for slowly-sampled data

Try sgolayfilt() in the Signal Processing Toolbox. That's one way. See my attached demo.

Smooth data for slowly-sampled data

Try sgolayfilt() in the Signal Processing Toolbox. That's one way. See my attached demo.

10 giorni ago | 0