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

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...

13 hours 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:...

14 hours 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...

14 hours ago | 0

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...

15 hours 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...

15 hours 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...

17 hours 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...

18 hours 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...

18 hours 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...

18 hours 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,...

18 hours ago | 0

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() ...

18 hours 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...

18 hours 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...

1 day 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.

1 day 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...

1 day 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...

1 day ago | 0

Answered

Array indices must be positive integers or logical values. Error in sym/subsref (line 870)

A thorough discussion of the error is in the FAQ: https://matlab.fandom.com/wiki/FAQ#.22Subscript_indices_must_either_be_real_p...

Array indices must be positive integers or logical values. Error in sym/subsref (line 870)

A thorough discussion of the error is in the FAQ: https://matlab.fandom.com/wiki/FAQ#.22Subscript_indices_must_either_be_real_p...

1 day ago | 0

Answered

Need to get a figure

hFig1 = figure; % Create first figure. hFig2 = figure; % Create second figure. figure(hFig1); % Switch to first figure. % Do ...

Need to get a figure

hFig1 = figure; % Create first figure. hFig2 = figure; % Create second figure. figure(hFig1); % Switch to first figure. % Do ...

3 days ago | 0

Answered

finding roots of equation in matlab

Use roots: r = roots([a, 0, b, 0, c, 0, d]) Try this: % A=a*w^6+b*w^4+c*w^2+d; a = 0.0011 b = 2 c = 3 d = -5000; w = lin...

finding roots of equation in matlab

Use roots: r = roots([a, 0, b, 0, c, 0, d]) Try this: % A=a*w^6+b*w^4+c*w^2+d; a = 0.0011 b = 2 c = 3 d = -5000; w = lin...

3 days ago | 0

Answered

Trying to save the red positions of an image

Oliver, this works: rgbImage = imread('image.png'); subplot(1, 2, 1); imshow(rgbImage); impixelinfo; % Let's you mouse aroun...

Trying to save the red positions of an image

Oliver, this works: rgbImage = imread('image.png'); subplot(1, 2, 1); imshow(rgbImage); impixelinfo; % Let's you mouse aroun...

3 days ago | 0

| accepted

Answered

How to prevent decrement (melting) past 0 until growth increases again?

Another way, inside the loop, is to use the max() function: hsnow(day+1) = max([0, hsnow(day) + snowfall(day) + dh_snow]); h_i...

How to prevent decrement (melting) past 0 until growth increases again?

Another way, inside the loop, is to use the max() function: hsnow(day+1) = max([0, hsnow(day) + snowfall(day) + dh_snow]); h_i...

3 days ago | 0

| accepted

Answered

How to make binary file for each iteration in a loop?

Try this: baseFileName = sprintf('ax_%d_%d_%d.raw', k, j, i); fullFileName = fullfile(folder, baseFileName); % folder can be p...

How to make binary file for each iteration in a loop?

Try this: baseFileName = sprintf('ax_%d_%d_%d.raw', k, j, i); fullFileName = fullfile(folder, baseFileName); % folder can be p...

3 days ago | 0

Answered

Radium decomposes at a rate proportional to the amount present. If a quarter of the original amount disappears after 900 years, what is the percentage lost in 75 years?

Did you see the File Exchange: https://www.mathworks.com/matlabcentral/fileexchange/69106-radioactive-decay-bateman-equation?s_t...

Radium decomposes at a rate proportional to the amount present. If a quarter of the original amount disappears after 900 years, what is the percentage lost in 75 years?

Did you see the File Exchange: https://www.mathworks.com/matlabcentral/fileexchange/69106-radioactive-decay-bateman-equation?s_t...

3 days ago | 0

Answered

How to avoid patch color being included in legend ?

Try this: clc; clear all; close all; x = linspace(-10,10,200); y = sin(4*x); y1 = sin(x); figure; hold on patch([2 5 5...

How to avoid patch color being included in legend ?

Try this: clc; clear all; close all; x = linspace(-10,10,200); y = sin(4*x); y1 = sin(x); figure; hold on patch([2 5 5...

3 days ago | 0

| accepted

Answered

make vectors same length

Maybe this: lastRow = min([length(acc), length(gyr), length(mag)]) % Crop acc = acc(1 : lastRow); gyr = gyr(1 : lastRow); m...

make vectors same length

Maybe this: lastRow = min([length(acc), length(gyr), length(mag)]) % Crop acc = acc(1 : lastRow); gyr = gyr(1 : lastRow); m...

3 days ago | 1

Answered

writetable adds unnecessary columns to Excel file

I see no such extra columns. Are you sure they're not still existing from a prior run where you forgot to transpose the variabl...

writetable adds unnecessary columns to Excel file

I see no such extra columns. Are you sure they're not still existing from a prior run where you forgot to transpose the variabl...

3 days ago | 0

| accepted

Answered

Sampling of a sinusoidal signal.

Here's a start: clc; % Clear the command window. fprintf('Beginning to run %s.m.\n', mfilename); close all; % Close all f...

Sampling of a sinusoidal signal.

Here's a start: clc; % Clear the command window. fprintf('Beginning to run %s.m.\n', mfilename); close all; % Close all f...

3 days ago | 0

Answered

Converting my code to matlab

You don't need to declare the type of a variable in advance (uint8, int, etc.) Opening braces are not needed to start a loop an...

Converting my code to matlab

You don't need to declare the type of a variable in advance (uint8, int, etc.) Opening braces are not needed to start a loop an...

3 days ago | 0

Answered

how to inverse the output image to show image like sketch

To invert the image subtract from 1: FMag = 1 - FMag;

how to inverse the output image to show image like sketch

To invert the image subtract from 1: FMag = 1 - FMag;

3 days ago | 0

Answered

Join curves of an image, identify which curves have to be joined

I'm attaching two edge linking demos. Adapt as needed - sorry I can't do that for you (not enough time).

Join curves of an image, identify which curves have to be joined

I'm attaching two edge linking demos. Adapt as needed - sorry I can't do that for you (not enough time).

5 days ago | 0