26,832 total contributions since 2010

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

is there any filter other than gaussian filter to reduce noise? if so what filter can be used?

What kind of data do you have? A 1-D signal? A 2-D grayscale or color image? You can look at simple filters like median, ...

is there any filter other than gaussian filter to reduce noise? if so what filter can be used?

What kind of data do you have? A 1-D signal? A 2-D grayscale or color image? You can look at simple filters like median, ...

8 hours ago | 0

Answered

How to take the average every 5 data points?

251 or 251 is not a multiple of 5. So here it is for 250: data = [(1:252)', rand(252, 1)] % Create sample data colu...

How to take the average every 5 data points?

251 or 251 is not a multiple of 5. So here it is for 250: data = [(1:252)', rand(252, 1)] % Create sample data colu...

17 hours ago | 1

| accepted

Answered

How do I graph y = sqrt(x) * exp(sin(pi/x))

Try this: x = linspace(eps, 1, 1000); y = sqrt(x) .* exp(sin(pi./x)) plot(x, y, 'b-', 'lineWidth', 2); grid on; ...

How do I graph y = sqrt(x) * exp(sin(pi/x))

Try this: x = linspace(eps, 1, 1000); y = sqrt(x) .* exp(sin(pi./x)) plot(x, y, 'b-', 'lineWidth', 2); grid on; ...

18 hours ago | 1

Answered

Question on usage of fft

You need to create a digital representation of the function. For example specify t then create F, then call FFT t = 1 : 10...

Question on usage of fft

You need to create a digital representation of the function. For example specify t then create F, then call FFT t = 1 : 10...

1 day ago | 0

| accepted

Answered

How to read CSV files one at every time using uigetfile and apply a set of formulae

To process a sequence of files, use one of the two code samples in the FAQ: <https://matlab.wikia.com/wiki/FAQ#How_can_I_proc...

How to read CSV files one at every time using uigetfile and apply a set of formulae

To process a sequence of files, use one of the two code samples in the FAQ: <https://matlab.wikia.com/wiki/FAQ#How_can_I_proc...

1 day ago | 0

Answered

How to plot multiple histogram in a Figure?

Put all the histograms into one 2-D array, and then call waterfall() or ribbon().

How to plot multiple histogram in a Figure?

Put all the histograms into one 2-D array, and then call waterfall() or ribbon().

1 day ago | 0

| accepted

Answered

how i can apply lbp,hog and gist features on any image with dimension 256,100,512?

See attached LBP example.

how i can apply lbp,hog and gist features on any image with dimension 256,100,512?

See attached LBP example.

1 day ago | 0

Answered

how to change something in image, for example: how to remove the "cells" that their radius less than X mm

*_"I want to remove them because they are died. and I have no idea how to segment them in the first place"_* Since you don't ...

how to change something in image, for example: how to remove the "cells" that their radius less than X mm

*_"I want to remove them because they are died. and I have no idea how to segment them in the first place"_* Since you don't ...

1 day ago | 0

Answered

how to reverse a random permutation of a matrix to get back the original matrix?

See attached demo. <</matlabcentral/answers/uploaded_files/132718/0000%20Screenshot.png>>

how to reverse a random permutation of a matrix to get back the original matrix?

See attached demo. <</matlabcentral/answers/uploaded_files/132718/0000%20Screenshot.png>>

1 day ago | 0

Answered

how to change something in image, for example: how to remove the "cells" that their radius less than X mm

Segment the image to get your binary image. Then use bwpropfilt().

how to change something in image, for example: how to remove the "cells" that their radius less than X mm

Segment the image to get your binary image. Then use bwpropfilt().

1 day ago | 0

Answered

How can I create a vector using line space command that'll have repeating variables. The vector B=44445555

Do you mean linspace() instead of "line space"? If so, you'll also need another function since linspace increments the number. ...

How can I create a vector using line space command that'll have repeating variables. The vector B=44445555

Do you mean linspace() instead of "line space"? If so, you'll also need another function since linspace increments the number. ...

1 day ago | 0

Answered

how can i split images data into two matrix with random percentage ???

Use randperm() or randsample().

how can i split images data into two matrix with random percentage ???

Use randperm() or randsample().

2 days ago | 0

Answered

hello all, i need your help..what will i do. for automatic done adjustment of brightness, object detect, deblurred image.

Use fft2() and sum up the energy in high spatial frequencies. Or use stdfilt() and get the mean intensity of the local standard...

hello all, i need your help..what will i do. for automatic done adjustment of brightness, object detect, deblurred image.

Use fft2() and sum up the energy in high spatial frequencies. Or use stdfilt() and get the mean intensity of the local standard...

2 days ago | 1

| accepted

Answered

I want to conclude that image is forged or not depending on below code.Please suggest solution.

Looks like you're just seeing the image images are equal or not. So you can bail on that code and just simply use isequal(): ...

I want to conclude that image is forged or not depending on below code.Please suggest solution.

Looks like you're just seeing the image images are equal or not. So you can bail on that code and just simply use isequal(): ...

2 days ago | 0

Answered

This is my first math lab program. When I move to the testing step I got an error. "Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters."

Didn't I just answer this? I said your braces and parentheses are messed up. See the FAQ: <http://matlab.wikia.com/wiki/FAQ#Wh...

This is my first math lab program. When I move to the testing step I got an error. "Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters."

Didn't I just answer this? I said your braces and parentheses are messed up. See the FAQ: <http://matlab.wikia.com/wiki/FAQ#Wh...

2 days ago | 0

Answered

Is poly2mask taking too much of the time?

Not sure what this code does with making increasingly large circles, but this seems to work: clc; % Clear the command wi...

Is poly2mask taking too much of the time?

Not sure what this code does with making increasingly large circles, but this seems to work: clc; % Clear the command wi...

2 days ago | 0

Answered

I am not able to get a line to appear on my graph?

You had force just as one single number, not a list of forces for each radius. Try this: radius = 6378:50000; force = 3...

I am not able to get a line to appear on my graph?

You had force just as one single number, not a list of forces for each radius. Try this: radius = 6378:50000; force = 3...

2 days ago | 0

| accepted

Answered

how to separate a 3D shape with repetitions to each repetition

Try this: clc; % Clear the command window. clearvars; close all; % Close all figures (except those of imtool.) ...

how to separate a 3D shape with repetitions to each repetition

Try this: clc; % Clear the command window. clearvars; close all; % Close all figures (except those of imtool.) ...

2 days ago | 0

| accepted

Answered

How to get back a three dimensional matrix using cat command?

Try uuf = cat(3, uu, uu, uu);

How to get back a three dimensional matrix using cat command?

Try uuf = cat(3, uu, uu, uu);

2 days ago | 0

Answered

Hi, This is my code.[fname path]=uigetfile('.jpg','open a image as input for trining'); fname=strcat(path,fname); im=imread(fname); imshow(im); title('Input Image'); c=input('Enter the Class (Numbers from 1-10)'); %%Feature extraction F=FeatureStatis

To get your number as a string instead of a double, use the 's' option: classNumber = input('Enter the class number : ','s'...

Hi, This is my code.[fname path]=uigetfile('.jpg','open a image as input for trining'); fname=strcat(path,fname); im=imread(fname); imshow(im); title('Input Image'); c=input('Enter the Class (Numbers from 1-10)'); %%Feature extraction F=FeatureStatis

To get your number as a string instead of a double, use the 's' option: classNumber = input('Enter the class number : ','s'...

2 days ago | 0

| accepted

Answered

Circle plot and random point on circle

Try this: % Plot a circle. angles = linspace(0, 2*pi, 720); % 720 is the total number of points radius = 20; xCent...

Circle plot and random point on circle

Try this: % Plot a circle. angles = linspace(0, 2*pi, 720); % 720 is the total number of points radius = 20; xCent...

2 days ago | 1

| accepted

Answered

How do i find the coordinates of point given its intensity ??

Use find(), not max(): v = randi(10, 5, 30) % Create small image. [maxValue, indexes] = max(v(:)) % Does not show ALL maxi...

How do i find the coordinates of point given its intensity ??

Use find(), not max(): v = randi(10, 5, 30) % Create small image. [maxValue, indexes] = max(v(:)) % Does not show ALL maxi...

2 days ago | 1

Answered

how to add rownames and column names for mat file

A mat file does not have rows. You can save an additional variable in your mat file if you want though. Just list them all ...

how to add rownames and column names for mat file

A mat file does not have rows. You can save an additional variable in your mat file if you want though. Just list them all ...

2 days ago | 0

Answered

I want histogram plot for all values. but i am getting only for last value. how could i get it for all values. and if i giving two histogram plot then i am getting only one plot. how could i change it

What do you consider a "value"? An image? Your code repeatedly reads in all images in a folder but overwrites them all so when...

I want histogram plot for all values. but i am getting only for last value. how could i get it for all values. and if i giving two histogram plot then i am getting only one plot. how could i change it

What do you consider a "value"? An image? Your code repeatedly reads in all images in a folder but overwrites them all so when...

2 days ago | 0

Answered

Push button to fill the static text - all related to a specific excel colum row

Here is how to format your code: <http://www.mathworks.com/matlabcentral/answers/13205#answer_18099> What is the function ...

Push button to fill the static text - all related to a specific excel colum row

Here is how to format your code: <http://www.mathworks.com/matlabcentral/answers/13205#answer_18099> What is the function ...

2 days ago | 0

Answered

How can I break the two different ranges in the vector apart?

Do you perhaps mean this: a = [7:17:302 primes(300)]; plot(a, 'b-', 'LineWidth', 2); grid on; index = find(diff(a)...

How can I break the two different ranges in the vector apart?

Do you perhaps mean this: a = [7:17:302 primes(300)]; plot(a, 'b-', 'LineWidth', 2); grid on; index = find(diff(a)...

3 days ago | 1

| accepted

Answered

I have PIV image of flow showing streak lines. I need to find velocity vector from that image using matlab. How to do that?? I am new to matlab and don't know much about it.

Find the length of each streak in pixels, multiply by the calibration scale factor in mm per pixel (or whatever units it is) and...

I have PIV image of flow showing streak lines. I need to find velocity vector from that image using matlab. How to do that?? I am new to matlab and don't know much about it.

Find the length of each streak in pixels, multiply by the calibration scale factor in mm per pixel (or whatever units it is) and...

3 days ago | 0

Answered

Undefined operator '-' for input arguments of type 'cell'.

Try this: Data={'Helium','He',.0341,.0237;'Hydrogen','H2',.244,.0266;'Oxygen','O2',1.36,.0318;'Chlorine','Cl2',6.49,.0562;'...

Undefined operator '-' for input arguments of type 'cell'.

Try this: Data={'Helium','He',.0341,.0237;'Hydrogen','H2',.244,.0266;'Oxygen','O2',1.36,.0318;'Chlorine','Cl2',6.49,.0562;'...

3 days ago | 0

Answered

I have problem with Sizing and Cell arrays

Is this what you want? % Subtract D = cell2mat(DCT) output = D - load_value_41_44';

I have problem with Sizing and Cell arrays

Is this what you want? % Subtract D = cell2mat(DCT) output = D - load_value_41_44';

3 days ago | 0

Answered

How do I create multiple parallel lines

If you're not fussy about the way the lines look, you can simply call grid on; Also, if you want the x and y axis in the...

How do I create multiple parallel lines

If you're not fussy about the way the lines look, you can simply call grid on; Also, if you want the x and y axis in the...

3 days ago | 1