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

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

etwa 11 Stunden 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, ...

etwa 11 Stunden 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...

etwa 12 Stunden ago | 0

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

etwa 14 Stunden 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...

ein Tag ago | 0

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

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

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

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

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

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

3 Tage 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');

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

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

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

5 Tage ago | 0

| accepted

Answered

Creating a function that gives the size and name of the variables in the mat-file

Try this: d = dir('*.mat'); % Get a list of all .mat files in the current folder. for k = 1 : length(d) s = load(d(k).name) ...

Creating a function that gives the size and name of the variables in the mat-file

Try this: d = dir('*.mat'); % Get a list of all .mat files in the current folder. for k = 1 : length(d) s = load(d(k).name) ...

5 Tage ago | 0

Answered

RGB2YCBCR image convertion

Do you mean like cb = cb - mean(cb(:)); cr = cr - mean(cr(:)); or possibly rescale so the max is at 127 and the min is at -12...

RGB2YCBCR image convertion

Do you mean like cb = cb - mean(cb(:)); cr = cr - mean(cr(:)); or possibly rescale so the max is at 127 and the min is at -12...

5 Tage ago | 0

Answered

How to separate the object from the background from the image

Try background = grayImage == 255; foreground = ~background;

How to separate the object from the background from the image

Try background = grayImage == 255; foreground = ~background;

5 Tage ago | 0

Answered

Is there a way to make the word in the image clearer?

Simply use images with more resolution - more elements. A 20x20 image is too small to get good resolution of a binary image mad...

Is there a way to make the word in the image clearer?

Simply use images with more resolution - more elements. A 20x20 image is too small to get good resolution of a binary image mad...

5 Tage ago | 1

| accepted

Answered

Please, someone help me to understand this code.

It would be easier if you'd attach your workbook, but it looks like it's doing some kind of peak detection where if an element i...

Please, someone help me to understand this code.

It would be easier if you'd attach your workbook, but it looks like it's doing some kind of peak detection where if an element i...

5 Tage ago | 1

| accepted

Answered

I want to find where is the mistake, and want to plot the full region

I've made a few fixes, and don't get an infinite loop, but the main problem is you have not initialized SUM. First of all it's ...

I want to find where is the mistake, and want to plot the full region

I've made a few fixes, and don't get an infinite loop, but the main problem is you have not initialized SUM. First of all it's ...

5 Tage ago | 0

| accepted

Answered

Assigning different colors to same segmented object

Try using findcircles(). Or you could try watershed() Watershed transform question from tech support » Watershed transform que...

Assigning different colors to same segmented object

Try using findcircles(). Or you could try watershed() Watershed transform question from tech support » Watershed transform que...

5 Tage ago | 0

| accepted

Answered

How I can zero pad a 14*14 matrix to 682*577 dimension?

Try this trick h = ones(14, 14); % Original matrix is 14 x 14 % Pad it out with 334 rows top and bottom, % and 281 columns le...

How I can zero pad a 14*14 matrix to 682*577 dimension?

Try this trick h = ones(14, 14); % Original matrix is 14 x 14 % Pad it out with 334 rows top and bottom, % and 281 columns le...

5 Tage ago | 0

| accepted

Answered

How to make Subscript indices real positive integers or logicals?

A thourough explanation of the error is in the FAQ: https://matlab.fandom.com/wiki/FAQ#.22Subscript_indices_must_either_be_real...

How to make Subscript indices real positive integers or logicals?

A thourough explanation of the error is in the FAQ: https://matlab.fandom.com/wiki/FAQ#.22Subscript_indices_must_either_be_real...

5 Tage ago | 0

Answered

Delete zeros form multiple columns in a matrix

I agree with the cyclist in that you probably don't really need to do this in your next step, whatever it is. That said, you ca...

Delete zeros form multiple columns in a matrix

I agree with the cyclist in that you probably don't really need to do this in your next step, whatever it is. That said, you ca...

5 Tage ago | 0

Answered

i try to print from (row, column) but I'm keep getting (row,row) for some reason.

table is a built-in function name. Do not use it as the name of one of your variables. Call it something else, like myMatrix o...

i try to print from (row, column) but I'm keep getting (row,row) for some reason.

table is a built-in function name. Do not use it as the name of one of your variables. Call it something else, like myMatrix o...

5 Tage ago | 1

Answered

matlab table selecting values

Emily, try this: % Generate sample data: v1 = rand(10, 1); v2 = rand(10, 1); charVector = ['a'; 'b'; 'c'; 'd'; 'e'; 'f'; 'g'...

matlab table selecting values

Emily, try this: % Generate sample data: v1 = rand(10, 1); v2 = rand(10, 1); charVector = ['a'; 'b'; 'c'; 'd'; 'e'; 'f'; 'g'...

5 Tage ago | 2

Answered

How to Convert the negative Zero into Positive Zero in my code?

Try getting a map of where T is really small, by your definition, like less than 0.001 or whatever. Then use that to set them t...

How to Convert the negative Zero into Positive Zero in my code?

Try getting a map of where T is really small, by your definition, like less than 0.001 or whatever. Then use that to set them t...

6 Tage ago | 0

| accepted

Answered

Shuffle the rows and calculate the distance

Not exactly sure what you're asking but you can use pdist2() to compute the distance of every x,y coordinate point in a list to ...

Shuffle the rows and calculate the distance

Not exactly sure what you're asking but you can use pdist2() to compute the distance of every x,y coordinate point in a list to ...

6 Tage ago | 0

Answered

How do I change an image into 2 main colors?

Use rgb2ind(), I believe it's something like [indexedImage, clrmap] = rgb2ind(rgbImage, 2); % Get 2 main colors.

How do I change an image into 2 main colors?

Use rgb2ind(), I believe it's something like [indexedImage, clrmap] = rgb2ind(rgbImage, 2); % Get 2 main colors.

6 Tage ago | 0