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

Purple colour extraction only

Try this: mask = imdilate(redChannel>200, true(5)); %the mask

Purple colour extraction only

Try this: mask = imdilate(redChannel>200, true(5)); %the mask

alrededor de 22 horas ago | 0

Answered

Display Folder Browser in MatLab Online?

Try issuing the >> filebrowser command.

Display Folder Browser in MatLab Online?

Try issuing the >> filebrowser command.

1 día ago | 0

Answered

setting the limits for negative values for colormap

What are the values when it crashes: minValue = min(C{g,1}(:,1)) maxValue = max(C{g,1}(:,1)) fprintf('Min = %f, max = %f.\n'...

setting the limits for negative values for colormap

What are the values when it crashes: minValue = min(C{g,1}(:,1)) maxValue = max(C{g,1}(:,1)) fprintf('Min = %f, max = %f.\n'...

1 día ago | 0

Answered

Saving full screen multiple figures

Try this: clear all; close all; clc; format long g; format compact; fontSize = 18; fprintf('Beginning to run %s.m ...\n',...

Saving full screen multiple figures

Try this: clear all; close all; clc; format long g; format compact; fontSize = 18; fprintf('Beginning to run %s.m ...\n',...

1 día ago | 1

| accepted

Answered

How to compare two colors?

JD, I haven't heard back from you so I assume you're having a lot of trouble. Maybe start with this simple script where I compa...

How to compare two colors?

JD, I haven't heard back from you so I assume you're having a lot of trouble. Maybe start with this simple script where I compa...

1 día ago | 0

Answered

How to compare two colors?

There are several ways to do this. For example you can use statistical discriminant analysis in RGB color space, like the attac...

How to compare two colors?

There are several ways to do this. For example you can use statistical discriminant analysis in RGB color space, like the attac...

1 día ago | 0

Answered

Finding the trajectory of a projectile

Attached is a program my son and I did for his college physics course. It computes just about everything you could possibly wan...

Finding the trajectory of a projectile

Attached is a program my son and I did for his college physics course. It computes just about everything you could possibly wan...

1 día ago | 1

| accepted

Answered

How to plot a graph with a for loop

You need to define x with linspace() and then use hold on in the loop: x = linspace(0, pi/4, 500); for n = 0 : 10 S = cos(n*...

How to plot a graph with a for loop

You need to define x with linspace() and then use hold on in the loop: x = linspace(0, pi/4, 500); for n = 0 : 10 S = cos(n*...

1 día ago | 0

| accepted

Answered

Please, How do I determine the Mean Absolute Value (MAV) of an acoustic signal, which has positive and negative data points?

Not sure what you mean by "Mean Average Signal" - that's kind of redundant isn't it. Mean and Average mean the same thing. Wha...

Please, How do I determine the Mean Absolute Value (MAV) of an acoustic signal, which has positive and negative data points?

Not sure what you mean by "Mean Average Signal" - that's kind of redundant isn't it. Mean and Average mean the same thing. Wha...

2 días ago | 0

Answered

max number of matrix to python

It takes column 2 of the matrix xx and gets the max value in that column 2 and sticks it in the variable called n (yeah - bad na...

max number of matrix to python

It takes column 2 of the matrix xx and gets the max value in that column 2 and sticks it in the variable called n (yeah - bad na...

2 días ago | 0

Answered

If statement for a struct with 2 conditions

To compare strings use strcmpi() or strcmp() and put the index right after s. if strcmpi(s(i).condition, 'condi1') && (s.point(...

If statement for a struct with 2 conditions

To compare strings use strcmpi() or strcmp() and put the index right after s. if strcmpi(s(i).condition, 'condi1') && (s.point(...

2 días ago | 0

Answered

Cell array row deletion

Use ismember(). Something like... fileNamePattern = 'MUSE20180113_171327_27000'; % Compare this character array to the list o...

Cell array row deletion

Use ismember(). Something like... fileNamePattern = 'MUSE20180113_171327_27000'; % Compare this character array to the list o...

2 días ago | 0

Answered

Replacing a cell value in a struct

This works: % Identify what number should replace what character vector. replacements = {'condi1', 1; 'condi2', 2; 'condi3', 3...

Replacing a cell value in a struct

This works: % Identify what number should replace what character vector. replacements = {'condi1', 1; 'condi2', 2; 'condi3', 3...

2 días ago | 0

| accepted

Answered

How can I remove the additive periodical noise from the image?

See attached demo. Because your bars are so sharp I'd probably rather fix the image in the spatial domain rather than the frequ...

How can I remove the additive periodical noise from the image?

See attached demo. Because your bars are so sharp I'd probably rather fix the image in the spatial domain rather than the frequ...

2 días ago | 0

Answered

Can Matlab handle this color scheme?

See my answer here, where I vary the line color for two cases: along the y axis (which you want), and along the x axis. https:/...

Can Matlab handle this color scheme?

See my answer here, where I vary the line color for two cases: along the y axis (which you want), and along the x axis. https:/...

2 días ago | 0

Answered

Can Matlab handle this color scheme?

Perhaps this might help: https://www.mathworks.com/matlabcentral/answers/5042-how-do-i-vary-color-along-a-2d-line#comment_12725...

Can Matlab handle this color scheme?

Perhaps this might help: https://www.mathworks.com/matlabcentral/answers/5042-how-do-i-vary-color-along-a-2d-line#comment_12725...

2 días ago | 0

| accepted

Answered

Replacing a cell value in a struct

Yes. For example to set the "condition" field to the number 5, do this: yourStruct.condition = 5; It doesn't matter that it u...

Replacing a cell value in a struct

Yes. For example to set the "condition" field to the number 5, do this: yourStruct.condition = 5; It doesn't matter that it u...

3 días ago | 0

Answered

Find all objects which have a callback

Check the Type and Style property to determine what kind of control it is. Here, this may give you ideas: % DisableAllControls...

Find all objects which have a callback

Check the Type and Style property to determine what kind of control it is. Here, this may give you ideas: % DisableAllControls...

3 días ago | 0

Answered

Vlaue of Slider --> EditField

I don't use app Designer, but isn't it something like value = app.sliderName.Value; app.EditField.String = sprintf('%.3f', val...

Vlaue of Slider --> EditField

I don't use app Designer, but isn't it something like value = app.sliderName.Value; app.EditField.String = sprintf('%.3f', val...

3 días ago | 1

| accepted

Answered

Is it possible to get the boundary size of an object in an image same after rotation of the image by a particular angle?

The number of elements that describe a boundary will of course vary. Just think about it a little and you'll realize why. If y...

Is it possible to get the boundary size of an object in an image same after rotation of the image by a particular angle?

The number of elements that describe a boundary will of course vary. Just think about it a little and you'll realize why. If y...

3 días ago | 0

Answered

How to make this code more efficient, and also how to output results to single excel file with multiple sheets?

If you make your variable a cell array, you can combine column header strings with numbers. Since sample changes only within th...

How to make this code more efficient, and also how to output results to single excel file with multiple sheets?

If you make your variable a cell array, you can combine column header strings with numbers. Since sample changes only within th...

3 días ago | 0

| accepted

Answered

Help with Monte Carlo

For your normal distribution rather than just say it's between 7 and 77, you should give its mean and standard deviation. Then ...

Help with Monte Carlo

For your normal distribution rather than just say it's between 7 and 77, you should give its mean and standard deviation. Then ...

3 días ago | 0

Answered

Bi-linear Regression- Model fitting

See attached demo, that I've posted many, many times before. The algorithm is I divide the data into two sections (left and rig...

Bi-linear Regression- Model fitting

See attached demo, that I've posted many, many times before. The algorithm is I divide the data into two sections (left and rig...

3 días ago | 0

Answered

Hello everyone, I would like to ask a question how to parameterize data points?

Wow, what a load of mathematical gobbledygook. Could they make it any more obtuse? Anyway, here is a start: s = load('data1.m...

Hello everyone, I would like to ask a question how to parameterize data points?

Wow, what a load of mathematical gobbledygook. Could they make it any more obtuse? Anyway, here is a start: s = load('data1.m...

4 días ago | 0

Answered

How to print same input file name as the output file name

Try this: [inputFolder, inputBaseFileNameNoExt, ext] = fileparts(fullInputFileName); outputFolder = fullfile(inputFolder, '/Ou...

How to print same input file name as the output file name

Try this: [inputFolder, inputBaseFileNameNoExt, ext] = fileparts(fullInputFileName); outputFolder = fullfile(inputFolder, '/Ou...

4 días ago | 0

Answered

Finding a specific pair of points in 2 matrices placed at the same index on both

Try this: A = [1 2 3 ; 2 3 6] B = [6 7 7; 4 8 9] usersAValue = 2.9 usersBValue = 7.9 % Specify how close they can be and st...

Finding a specific pair of points in 2 matrices placed at the same index on both

Try this: A = [1 2 3 ; 2 3 6] B = [6 7 7; 4 8 9] usersAValue = 2.9 usersBValue = 7.9 % Specify how close they can be and st...

4 días ago | 0

Answered

Counting Specific Number of Consecutive Values in a Matrix

Here's another way using the Image Processing Toolbox to filter out short sequences and count how many are left: A = [1 0 0 1 1...

Counting Specific Number of Consecutive Values in a Matrix

Here's another way using the Image Processing Toolbox to filter out short sequences and count how many are left: A = [1 0 0 1 1...

4 días ago | 0

| accepted

Answered

Image files from Magellan mission to Venus: .sdt format

I didn't see it in the File Exchange, so you can ask whomever said that at your university, or you can check the Magellan websit...

Image files from Magellan mission to Venus: .sdt format

I didn't see it in the File Exchange, so you can ask whomever said that at your university, or you can check the Magellan websit...

4 días ago | 0

Answered

How to convert 8 Binary images of size 256 x 256 into a Grayscale image of same size, i.e., 256 x 256?

Use bitset(). If you can't figure it out, write back. Some demos to help are attached.

How to convert 8 Binary images of size 256 x 256 into a Grayscale image of same size, i.e., 256 x 256?

Use bitset(). If you can't figure it out, write back. Some demos to help are attached.

4 días ago | 0

Answered

How to plot the following figures?

For 1.1, did you look up how subplot() works in the help? If you had, you would have learned this: subplot(2, 2, 1); plot(rea...

How to plot the following figures?

For 1.1, did you look up how subplot() works in the help? If you had, you would have learned this: subplot(2, 2, 1); plot(rea...

4 días ago | 0