Senior Scientist (male/man) 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. Member of the Mathworks Community Advisory Board. 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

What is the error? 1, fast

What I get is Error using - Matrix dimensions must agree. Error in test (line 18) eg1= ((asin((L3*sind(th_3)-R*sind(th_r)...

What is the error? 1, fast

What I get is Error using - Matrix dimensions must agree. Error in test (line 18) eg1= ((asin((L3*sind(th_3)-R*sind(th_r)...

alrededor de 8 horas ago | 0

Answered

Finding the distances between two boundaries

To get a list of (row, column) coordinates for blobs in a binary image you can do boundaries = bwboundaries(mask); % To find t...

Finding the distances between two boundaries

To get a list of (row, column) coordinates for blobs in a binary image you can do boundaries = bwboundaries(mask); % To find t...

alrededor de 8 horas ago | 0

Answered

How can I create a for loop that takes the number 500 and multiplies it by 1.1 every 7 steps (7,14,21,...), meaning that i want the answer as follows: 500.... 500*1.1....500*1.1*1.1....500*1.1*1.1*1.1 etc

See answer in your duplicate question: https://www.mathworks.com/matlabcentral/answers/831008-how-can-i-create-a-for-loop-that-...

How can I create a for loop that takes the number 500 and multiplies it by 1.1 every 7 steps (7,14,21,...), meaning that i want the answer as follows: 500.... 500*1.1....500*1.1*1.1....500*1.1*1.1*1.1 etc

See answer in your duplicate question: https://www.mathworks.com/matlabcentral/answers/831008-how-can-i-create-a-for-loop-that-...

alrededor de 8 horas ago | 0

| accepted

Answered

How can I create a for loop that takes the number 12000

salary = 12000 for n = 7 : 7 : 63 salary = salary * 1.1 end Note : since you're only multiplying by 1.1 every 7th year, ...

How can I create a for loop that takes the number 12000

salary = 12000 for n = 7 : 7 : 63 salary = salary * 1.1 end Note : since you're only multiplying by 1.1 every 7th year, ...

alrededor de 8 horas ago | 1

| accepted

Answered

I'm getting this error and I'm unable to figure out this. Please help

Do what it says in the FAQ. It's the fastest route to success. https://matlab.fandom.com/wiki/FAQ#During_installation.2C_the_i...

I'm getting this error and I'm unable to figure out this. Please help

Do what it says in the FAQ. It's the fastest route to success. https://matlab.fandom.com/wiki/FAQ#During_installation.2C_the_i...

alrededor de 11 horas ago | 0

Answered

How to fix the Index exceeds array dimensions ,Index value 2 exceeds valid range [1-1] for array 'Hv'

I don't know what these formulas are doing Hx=(C*A); Hv= C*(I-A)*((I-A)^-1)*B; but Hx is a 1x2 row vector while Hv is a scala...

How to fix the Index exceeds array dimensions ,Index value 2 exceeds valid range [1-1] for array 'Hv'

I don't know what these formulas are doing Hx=(C*A); Hv= C*(I-A)*((I-A)^-1)*B; but Hx is a 1x2 row vector while Hv is a scala...

alrededor de 15 horas ago | 0

Answered

Finding green circle in image or video

Try the camera calibration functionality in the Computer Vision Toolbox: https://www.mathworks.com/products/computer-vision.htm...

Finding green circle in image or video

Try the camera calibration functionality in the Computer Vision Toolbox: https://www.mathworks.com/products/computer-vision.htm...

alrededor de 15 horas ago | 0

Answered

matlab can't open (will crash) in macOS big sur 11.3.1

Your fastest route to a solution is probably to do what it says in the FAQ, https://matlab.fandom.com/wiki/FAQ#After_installati...

matlab can't open (will crash) in macOS big sur 11.3.1

Your fastest route to a solution is probably to do what it says in the FAQ, https://matlab.fandom.com/wiki/FAQ#After_installati...

alrededor de 15 horas ago | 0

Answered

Unable to save image using a SAVE button

A more robust way is this: % Get the name of the file that the user wants to save. % Note, if you're saving an image you can u...

Unable to save image using a SAVE button

A more robust way is this: % Get the name of the file that the user wants to save. % Note, if you're saving an image you can u...

alrededor de 15 horas ago | 0

Answered

Denoising the sinusoidal signal

Yeah, most likely we can help. Read this link first. How do I get help on homework questions on MATLAB Answers? - MATLAB Answe...

Denoising the sinusoidal signal

Yeah, most likely we can help. Read this link first. How do I get help on homework questions on MATLAB Answers? - MATLAB Answe...

alrededor de 15 horas ago | 0

Answered

How can I sort through a set of tables and remove the duplicates?

Can't be sure since you (unfortunately) forgot to attach your table in a .mat file with the paperclip icon, but I bet it will in...

How can I sort through a set of tables and remove the duplicates?

Can't be sure since you (unfortunately) forgot to attach your table in a .mat file with the paperclip icon, but I bet it will in...

1 día ago | 0

Answered

facing problem while use blockproc function

I have no idea what your function does or what the zigzag function inside of it does, but this code will get you closer: clc; ...

facing problem while use blockproc function

I have no idea what your function does or what the zigzag function inside of it does, but this code will get you closer: clc; ...

1 día ago | 0

Answered

How to count the number of pixels inside a region

There are two ways (at least). Since you have a binary image that is black/0/false all around your circle, and white/1/true ins...

How to count the number of pixels inside a region

There are two ways (at least). Since you have a binary image that is black/0/false all around your circle, and white/1/true ins...

1 día ago | 0

Answered

Unable to perform assignment because the left and right sides have a different number of elements.

Try this (before the error line) and tell us what it says. whos h whos S4 whos I4 Chances are h is not a single scalar numbe...

Unable to perform assignment because the left and right sides have a different number of elements.

Try this (before the error line) and tell us what it says. whos h whos S4 whos I4 Chances are h is not a single scalar numbe...

1 día ago | 0

Answered

CBIR ,read image, index

Start with this: folder = pwd; % Wherever. filePattern = fullfile(folder, '*.png') imds = imageDatastore(filePattern) numFil...

CBIR ,read image, index

Start with this: folder = pwd; % Wherever. filePattern = fullfile(folder, '*.png') imds = imageDatastore(filePattern) numFil...

1 día ago | 0

| accepted

Answered

Problem with Color Keying

See color segmentation demos in my File Exchange: Image Analyst's File Exchange Also see the Image Segmentation Tutorial there...

Problem with Color Keying

See color segmentation demos in my File Exchange: Image Analyst's File Exchange Also see the Image Segmentation Tutorial there...

2 días ago | 0

Answered

pad matrix to a particular size

You can use the 'pre' and 'post' options to pad each side with the desired number of zeros. Or use this "trick" g = ones(150, ...

pad matrix to a particular size

You can use the 'pre' and 'post' options to pad each side with the desired number of zeros. Or use this "trick" g = ones(150, ...

2 días ago | 1

| accepted

Answered

How to replace all zeros in a matrix with a vector from 1 to 9 in the order of ascending indices?

Try this. The replacements are in "column-major" order, since that's how MATLAB does things. x = [ 0 4 9 9 -4...

How to replace all zeros in a matrix with a vector from 1 to 9 in the order of ascending indices?

Try this. The replacements are in "column-major" order, since that's how MATLAB does things. x = [ 0 4 9 9 -4...

2 días ago | 0

| accepted

Answered

What code can I use if I want to add a condition wherein if I show a picture that is not registered in the database folder it will display 'Unrecognized Face"? 🙂

You need a function that checks the current snapshot against your database. That function can return true, false, or even the n...

What code can I use if I want to add a condition wherein if I show a picture that is not registered in the database folder it will display 'Unrecognized Face"? 🙂

You need a function that checks the current snapshot against your database. That function can return true, false, or even the n...

3 días ago | 0

| accepted

Answered

From a matrix how can I randomly select one column combination at a time

This will do it: A = [ 1 0 0 0 1 1 1 1 0] [rows, columns] = size(A) % Get a random column. randomColu...

From a matrix how can I randomly select one column combination at a time

This will do it: A = [ 1 0 0 0 1 1 1 1 0] [rows, columns] = size(A) % Get a random column. randomColu...

3 días ago | 1

Answered

Can anybody help me with the two questions below in the image? Thanks in advance

You can either do this by doing a series of comparisons like numCs = sum(grades > 70 & grades <= 80) % Compute the number of "C...

Can anybody help me with the two questions below in the image? Thanks in advance

You can either do this by doing a series of comparisons like numCs = sum(grades > 70 & grades <= 80) % Compute the number of "C...

3 días ago | 0

Answered

How do I fix the "A METHODS block or END might be missing before the function definition. This might be causing additional error messages." issue.

It looks like you defined the function ApplyNoiseButtonPushed inside itself. No - you cannot do that. A function cannot have a...

How do I fix the "A METHODS block or END might be missing before the function definition. This might be causing additional error messages." issue.

It looks like you defined the function ApplyNoiseButtonPushed inside itself. No - you cannot do that. A function cannot have a...

3 días ago | 1

| accepted

Answered

How to do code with 2 equations with 2 unknowns and an angle that goes from 0 to 360?

It would be easier if you told us A, B, C, and H, and the range that x and y take. Then just loop over z. It might be easier i...

How to do code with 2 equations with 2 unknowns and an angle that goes from 0 to 360?

It would be easier if you told us A, B, C, and H, and the range that x and y take. Then just loop over z. It might be easier i...

4 días ago | 0

Answered

extract all points from curves

Try this: % Create sample data. x = [1,2,3,4,5,6,7,8,9,10] y = [1,2,3,4,5,6,7,8,9,10] % Add some noise to make the data "wav...

extract all points from curves

Try this: % Create sample data. x = [1,2,3,4,5,6,7,8,9,10] y = [1,2,3,4,5,6,7,8,9,10] % Add some noise to make the data "wav...

4 días ago | 0

Answered

I want to separate the signal from the noise with the help of a low pass filter.

What is i and m? What I'd do it do just zero out the middle of the FFT signal to "zero out" high frequencies. Or zero out the ...

I want to separate the signal from the noise with the help of a low pass filter.

What is i and m? What I'd do it do just zero out the middle of the FFT signal to "zero out" high frequencies. Or zero out the ...

5 días ago | 0

Answered

Finding Last Non-Zero Value For Each Row

Try this: % Sample data m = randi([0, 1], 10, 10) [rows, columns] = size(m) % Create an array to keep track of the column o...

Finding Last Non-Zero Value For Each Row

Try this: % Sample data m = randi([0, 1], 10, 10) [rows, columns] = size(m) % Create an array to keep track of the column o...

5 días ago | 0

| accepted

Answered

How to increase image size while keeping image sharp?

You need to use the nearest option: B = imresize(A, 4, 'nearest');

How to increase image size while keeping image sharp?

You need to use the nearest option: B = imresize(A, 4, 'nearest');

5 días ago | 0

Answered

Reference to non-existent field

I see you assigned modelparam.sigma=sigma/20; but where exactly did you assign modelparam.sigmaV = ????????????????????? I'm...

Reference to non-existent field

I see you assigned modelparam.sigma=sigma/20; but where exactly did you assign modelparam.sigmaV = ????????????????????? I'm...

5 días ago | 0

Answered

MATLAB (Please Help, Full Practice in the below) : Split and plot the training data set and test data set.

Do you mean something like this: % Demo by Image Analyst. clc; % Clear command window. clear; % Delete all variables. close ...

MATLAB (Please Help, Full Practice in the below) : Split and plot the training data set and test data set.

Do you mean something like this: % Demo by Image Analyst. clc; % Clear command window. clear; % Delete all variables. close ...

7 días ago | 0

Answered

Meaning of this Number

Possibly but not necessarily. They may be less than 0.0001 * 10^-16 so they display as zero in a display like that, where the o...

Meaning of this Number

Possibly but not necessarily. They may be less than 0.0001 * 10^-16 so they display as zero in a display like that, where the o...

7 días ago | 0

| accepted