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

Add transparency to colormap

I'd probably create a new RGB image with the colormap and ind2rgb(). Then take a weighted average of them rgbImage = cat(3, gr...

Add transparency to colormap

I'd probably create a new RGB image with the colormap and ind2rgb(). Then take a weighted average of them rgbImage = cat(3, gr...

1 day ago | 0

Answered

Why subplots doesn't work?

Both of your code snippets plot both subplots on a single figure. The two subplots are not on different figures. It makes no d...

Why subplots doesn't work?

Both of your code snippets plot both subplots on a single figure. The two subplots are not on different figures. It makes no d...

1 day ago | 0

Answered

Huge white space around the plot after saving

Try exportgraphics() instead of print().

Huge white space around the plot after saving

Try exportgraphics() instead of print().

1 day ago | 1

Answered

Accessing Elements in a 3D matrix using Linear Indexing ?

Yes, it's possible but you'd need 3 dimensions for the linear array, not 2. So not M-by-N but rows-by-columns-by-slice. [rows,...

Accessing Elements in a 3D matrix using Linear Indexing ?

Yes, it's possible but you'd need 3 dimensions for the linear array, not 2. So not M-by-N but rows-by-columns-by-slice. [rows,...

1 day ago | 0

Answered

Plot a filled black circle on a certain background

See the FAQ: https://matlab.fandom.com/wiki/FAQ#How_do_I_create_a_circle.3F

Plot a filled black circle on a certain background

See the FAQ: https://matlab.fandom.com/wiki/FAQ#How_do_I_create_a_circle.3F

1 day ago | 0

Answered

Obtain average image threshold without the background

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

Obtain average image threshold without the background

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

2 days ago | 1

| accepted

Answered

calculating error while averaging multiple images

See my attached demo. It averages RGB and gray scale images and gives statistics about them.. Adapt as needed.

calculating error while averaging multiple images

See my attached demo. It averages RGB and gray scale images and gives statistics about them.. Adapt as needed.

2 days ago | 0

Answered

Error using Video Writer

If your subsequent images are not the same size as the first frame, you could call imresize() to make them the same size.

Error using Video Writer

If your subsequent images are not the same size as the first frame, you could call imresize() to make them the same size.

2 days ago | 0

| accepted

Answered

Find whether there is a trend over time or the data is completely random

Star Strider will know, but until he answers the only thing I can suggest is looking into the chi-squared test.

Find whether there is a trend over time or the data is completely random

Star Strider will know, but until he answers the only thing I can suggest is looking into the chi-squared test.

2 days ago | 0

Answered

Shape identification from array data

See my attached shape identification demos. You could also use deep learning if you have a set of shapes to train on.

Shape identification from array data

See my attached shape identification demos. You could also use deep learning if you have a set of shapes to train on.

2 days ago | 0

Answered

Undefined function 'predict' for input arguments of type 'classreg.learning.partition.RegressionPartitionedLinear'.

What does this say >> which -all predict Also if you run the attached program, what does it say?

Undefined function 'predict' for input arguments of type 'classreg.learning.partition.RegressionPartitionedLinear'.

What does this say >> which -all predict Also if you run the attached program, what does it say?

2 days ago | 0

| accepted

Answered

Issues in pca transformation

Since you're using random numbers, why do you think that exactly 50% of your points should fall into each of two classes? Your ...

Issues in pca transformation

Since you're using random numbers, why do you think that exactly 50% of your points should fall into each of two classes? Your ...

2 days ago | 0

Answered

Transform image in matlab

See Steve's blog: http://blogs.mathworks.com/steve/2006/08/04/spatial-transformations-defining-and-applying-custom-transforms/

Transform image in matlab

See Steve's blog: http://blogs.mathworks.com/steve/2006/08/04/spatial-transformations-defining-and-applying-custom-transforms/

2 days ago | 0

Answered

Transforming a matrix in an image

First of all, your image is A, not im. im is what imshow returns and it is the handle to an image object, not an actual image i...

Transforming a matrix in an image

First of all, your image is A, not im. im is what imshow returns and it is the handle to an image object, not an actual image i...

2 days ago | 0

| accepted

Answered

i am trying to do this code

You need to do it on the gray scale image. Here's a little bit more: clc; % Clear the command window. fprintf('Beginning t...

i am trying to do this code

You need to do it on the gray scale image. Here's a little bit more: clc; % Clear the command window. fprintf('Beginning t...

3 days ago | 0

Answered

i am trying to do this code

You cannot do this: [m,n,5]=size(A); Like I said before in your prior/duplicate question, the third output must be a variable:...

i am trying to do this code

You cannot do this: [m,n,5]=size(A); Like I said before in your prior/duplicate question, the third output must be a variable:...

3 days ago | 0

Answered

how to transfer a 3D variable into a row in an excel file?

In general, you can make a row vector out of your 3-D variable like this: rowVector = array3d(:)'; % Now write to Excel xlswr...

how to transfer a 3D variable into a row in an excel file?

In general, you can make a row vector out of your 3-D variable like this: rowVector = array3d(:)'; % Now write to Excel xlswr...

3 days ago | 0

| accepted

Answered

what is wrong here? ??? Error using ==> times Matrix dimensions must agree.

Never do this with an image: [m,n]=size(A); Why not? Because if A is RGB, which yours is, then your n is the number of column...

what is wrong here? ??? Error using ==> times Matrix dimensions must agree.

Never do this with an image: [m,n]=size(A); Why not? Because if A is RGB, which yours is, then your n is the number of column...

3 days ago | 0

| accepted

Answered

two clustering algorithm's graph in a single plot

What is "affinity propagation clustering graph"? Do you have code to make that? In general, call "hold on" and then call scatt...

two clustering algorithm's graph in a single plot

What is "affinity propagation clustering graph"? Do you have code to make that? In general, call "hold on" and then call scatt...

3 days ago | 0

Answered

Marking landmarks in image and determining real time distance panned by camera based on pixel value

This is what I see, and why we prefer that you attach the image here instead of on third party sites: It's all black. Perhap...

Marking landmarks in image and determining real time distance panned by camera based on pixel value

This is what I see, and why we prefer that you attach the image here instead of on third party sites: It's all black. Perhap...

3 days ago | 0

Answered

apply knn over kmeans clustering

No, I don't think so. kmeans() assigns a class to every point with no guidance at all. knn assigns a class based on a referenc...

apply knn over kmeans clustering

No, I don't think so. kmeans() assigns a class to every point with no guidance at all. knn assigns a class based on a referenc...

3 days ago | 0

Answered

Help ! mcc -m NOT WORK

Could be lots of reasons. Maybe you no longer have a license for the Compiler Toolbox. Maybe there is a syntax error on that l...

Help ! mcc -m NOT WORK

Could be lots of reasons. Maybe you no longer have a license for the Compiler Toolbox. Maybe there is a syntax error on that l...

3 days ago | 0

Answered

How to compare one H,S and V histogram with another H,S and V histogram

Perhaps you just want to take the mean and standard deviation of each histogram. Why don't you look into CBIR papers to see how...

How to compare one H,S and V histogram with another H,S and V histogram

Perhaps you just want to take the mean and standard deviation of each histogram. Why don't you look into CBIR papers to see how...

3 days ago | 0

Answered

sum of two convolution

You have to determine what the time (or s) axis is, then expand A on the correct side so that it's 6 elements long. In general,...

sum of two convolution

You have to determine what the time (or s) axis is, then expand A on the correct side so that it's 6 elements long. In general,...

3 days ago | 0

| accepted

Answered

How to make label on the image and find the distance?

I don't know how a label would help you "for finding the distace". But anyway, to put a text label on the image use the text() ...

How to make label on the image and find the distance?

I don't know how a label would help you "for finding the distace". But anyway, to put a text label on the image use the text() ...

3 days ago | 0

Answered

evaluating binary substring to decimal value

Mohamed: That code, which is part C and part MATLAB, would be this in MATLAB: function total=EvaluateBinary(substring) byteSi...

evaluating binary substring to decimal value

Mohamed: That code, which is part C and part MATLAB, would be this in MATLAB: function total=EvaluateBinary(substring) byteSi...

3 days ago | 0

Answered

Convert color images to binary images, which can be implemented in matlab 7 and not run in 2014a

Only convert to gray scale if the image is definitely RGB. Make sure you use all 3 outputs when using size() with images. See...

Convert color images to binary images, which can be implemented in matlab 7 and not run in 2014a

Only convert to gray scale if the image is definitely RGB. Make sure you use all 3 outputs when using size() with images. See...

4 days ago | 0

Answered

Undefined function or variable 'imnlmfilt'

It was introduced in R2018b. Try to upgrade.

Undefined function or variable 'imnlmfilt'

It was introduced in R2018b. Try to upgrade.

4 days ago | 0

Answered

Generate histogram of HSV quantized image

Why are you calling multithresh() and imquantize() to quantize it. Just call histogram() if you want the histogram. Your subje...

Generate histogram of HSV quantized image

Why are you calling multithresh() and imquantize() to quantize it. Just call histogram() if you want the histogram. Your subje...

4 days ago | 0

| accepted

Answered

How to convert omnidirectional/ 360 degree image into rectangular form?

What I'd do is to find the inner and outer radii. Lots of ways to do that but you can just take a guess if you want. Then conve...

How to convert omnidirectional/ 360 degree image into rectangular form?

What I'd do is to find the inner and outer radii. Lots of ways to do that but you can just take a guess if you want. Then conve...

4 days ago | 0