28.991 total contributions since 2010

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

disp gives wrong format

Try fprintf() instead of disp(): fprintf('%6.2f, %9.6f\n', [t; s]); With fprintf() you can get exactly the appearance you w...

disp gives wrong format

Try fprintf() instead of disp(): fprintf('%6.2f, %9.6f\n', [t; s]); With fprintf() you can get exactly the appearance you w...

etwa 2 Stunden ago | 0

Answered

Create image from an Image

Sum the image horizontally. Untested code: verticalProfile = sum(rgbImage(:,:,3), 2); % Collapse across columns. % Then find ...

Create image from an Image

Sum the image horizontally. Untested code: verticalProfile = sum(rgbImage(:,:,3), 2); % Collapse across columns. % Then find ...

2 Tage ago | 1

| accepted

Answered

Measure vertical distance using loop function

You cannot find that distance(s) because the location of the "kink" between surface 1 and 2 is not specified. If it were moved ...

Measure vertical distance using loop function

You cannot find that distance(s) because the location of the "kink" between surface 1 and 2 is not specified. If it were moved ...

2 Tage ago | 0

Answered

binary image to matrix of 10 by 5 matrix

Not sure what this means - what does 8 pixels have to do with anything. To convert your binary image to a size of 10 by 5, use ...

binary image to matrix of 10 by 5 matrix

Not sure what this means - what does 8 pixels have to do with anything. To convert your binary image to a size of 10 by 5, use ...

2 Tage ago | 0

Answered

Image Processing Distance Measurement

Try (untested) % extracting the red channel redChannel = rgbImage(:,:,1); [rows, columns] = size(redChannel) % then threshol...

Image Processing Distance Measurement

Try (untested) % extracting the red channel redChannel = rgbImage(:,:,1); [rows, columns] = size(redChannel) % then threshol...

2 Tage ago | 0

Answered

Why my coding keep running non stop?

A common bug that Walter mentioned is an infinite loop caused by not having an iteration limit on a while loop so that the while...

Why my coding keep running non stop?

A common bug that Walter mentioned is an infinite loop caused by not having an iteration limit on a while loop so that the while...

3 Tage ago | 0

Answered

How to create empty matrix in matlab?

Try making a 3-D matrix allImages = zeros(64, 64, 100, 'uint8'); % or whatever class they are. for slice = 1 : 100 thisSl...

How to create empty matrix in matlab?

Try making a 3-D matrix allImages = zeros(64, 64, 100, 'uint8'); % or whatever class they are. for slice = 1 : 100 thisSl...

3 Tage ago | 0

Answered

How can I extract the frame around the windows?

I suggest you just call rbbox(), imrect(), or imcrop() for the simplest solution. Anything else is not going to be "basic".

How can I extract the frame around the windows?

I suggest you just call rbbox(), imrect(), or imcrop() for the simplest solution. Anything else is not going to be "basic".

4 Tage ago | 0

| accepted

Answered

How to 'clean' data using moving average window filter

Try this: subplot(1, 2, 1); plot(y, 'LineWidth', 2); title('y', 'FontSize', 16) subplot(1, 2, 2); plot(y2, 'LineWidth', 2);...

How to 'clean' data using moving average window filter

Try this: subplot(1, 2, 1); plot(y, 'LineWidth', 2); title('y', 'FontSize', 16) subplot(1, 2, 2); plot(y2, 'LineWidth', 2);...

4 Tage ago | 0

| accepted

Answered

read 20 images in ordered manner

Part of the problem was in using a file pattern of *.jpg when you actually have *.png files. But also other errors. Try this (...

read 20 images in ordered manner

Part of the problem was in using a file pattern of *.jpg when you actually have *.png files. But also other errors. Try this (...

4 Tage ago | 0

Answered

how do i use the rand command in an array of an image, i want the program to read the image and draw some elements from that array

Try something like this: randomIndexes = randperm(numel(grayImage), numIndexes); extractedPixels = grayImage(randomIndexes); ...

how do i use the rand command in an array of an image, i want the program to read the image and draw some elements from that array

Try something like this: randomIndexes = randperm(numel(grayImage), numIndexes); extractedPixels = grayImage(randomIndexes); ...

4 Tage ago | 0

Answered

How to rotate image by using orientation regionprops?

Try this meanAngle = mean(ori) BW3 = imrotate(BW3, -meanAngle);

How to rotate image by using orientation regionprops?

Try this meanAngle = mean(ori) BW3 = imrotate(BW3, -meanAngle);

4 Tage ago | 0

Answered

I need some help with image processing

Maybe compute the sum of the residuals from a line coefficients = polyfit(xcoor, ycoor, 1); yFitted = polyval(coefficients, xc...

I need some help with image processing

Maybe compute the sum of the residuals from a line coefficients = polyfit(xcoor, ycoor, 1); yFitted = polyval(coefficients, xc...

4 Tage ago | 0

Answered

How to make GUI look similar on different computer's screen?

The best way I've found is to set all the units to normalized, and then have your end user use as close a pixel dimensions as yo...

How to make GUI look similar on different computer's screen?

The best way I've found is to set all the units to normalized, and then have your end user use as close a pixel dimensions as yo...

4 Tage ago | 0

| accepted

Answered

lisans nasıl alcagız arkadaslar? How do we get a license?

See the license types on this page: https://www.mathworks.com/products.html?s_tid=gn_ps

lisans nasıl alcagız arkadaslar? How do we get a license?

See the license types on this page: https://www.mathworks.com/products.html?s_tid=gn_ps

5 Tage ago | 0

Answered

How to Call a function onto a separate script

Try something like this TotalMinutes = 123; % Whatever [Hours, Minutes, Message] = MyTimeConversion(TotalMinutes) uiwait(hel...

How to Call a function onto a separate script

Try something like this TotalMinutes = 123; % Whatever [Hours, Minutes, Message] = MyTimeConversion(TotalMinutes) uiwait(hel...

5 Tage ago | 0

| accepted

Answered

Hai .. i am new to matlab.. i have trouble in below function.. i am trying to run the below code but i got error 'not enough input arguments' .. please help me solve it... Thanks

What is name when you call it? For example did you do this [ trainClass ] = buildClassLabel('Siva'); which should work. Or d...

Hai .. i am new to matlab.. i have trouble in below function.. i am trying to run the below code but i got error 'not enough input arguments' .. please help me solve it... Thanks

What is name when you call it? For example did you do this [ trainClass ] = buildClassLabel('Siva'); which should work. Or d...

5 Tage ago | 0

Answered

How to convert 3d array to raster (tiff)

If "m" is your 3-D variable, then do this time1 = m(:, :, 1); imshow(time1, []); This assumes your latitude and longitudes ar...

How to convert 3d array to raster (tiff)

If "m" is your 3-D variable, then do this time1 = m(:, :, 1); imshow(time1, []); This assumes your latitude and longitudes ar...

5 Tage ago | 1

Answered

create an echo effect

The loop just goes through each time point in the signal adding in a fraction of the signal from an earlier time point. Attach ...

create an echo effect

The loop just goes through each time point in the signal adding in a fraction of the signal from an earlier time point. Attach ...

5 Tage ago | 0

| accepted

Answered

Apply all steps in whole data set.

You need to make up a cell reference with the row and column you want the data to go into. For example cellReference = sprintf...

Apply all steps in whole data set.

You need to make up a cell reference with the row and column you want the data to go into. For example cellReference = sprintf...

5 Tage ago | 0

| accepted

Answered

How to use PCA as feature descriptor for images like FFT, GLCM etc???Please help

Just treat the PC image like any other image, for example meanOfPC1 = mean(PC1(:)); % Get mean of the first PC image. sdOfPC1 ...

How to use PCA as feature descriptor for images like FFT, GLCM etc???Please help

Just treat the PC image like any other image, for example meanOfPC1 = mean(PC1(:)); % Get mean of the first PC image. sdOfPC1 ...

5 Tage ago | 0

| accepted

Answered

Power spectral density of voice recording

Yes, pwelch() is fine. That's what I'd use.

Power spectral density of voice recording

Yes, pwelch() is fine. That's what I'd use.

6 Tage ago | 0

| accepted

Answered

how do i spread ticks evenly on a plot?

You mean like this: workspace; % Make sure the workspace panel is showing. figure(1) % plot on large axes plot(x, y1, 'Line...

how do i spread ticks evenly on a plot?

You mean like this: workspace; % Make sure the workspace panel is showing. figure(1) % plot on large axes plot(x, y1, 'Line...

7 Tage ago | 0

Answered

How do I determine goodness of the fit (any curve )when using least square method?

How about simply taking the sum of the residuals? residualSum = sum(abs(yFitted - yTraining));

How do I determine goodness of the fit (any curve )when using least square method?

How about simply taking the sum of the residuals? residualSum = sum(abs(yFitted - yTraining));

8 Tage ago | 0

Answered

Find the points on circumference of a circle

Use sind() and cosd() to get all the x and y coordinates. Round them to get integers and use unique() with the rows option to r...

Find the points on circumference of a circle

Use sind() and cosd() to get all the x and y coordinates. Round them to get integers and use unique() with the rows option to r...

8 Tage ago | 0

Answered

How to get password to install MatLab

It's normally the same one you use to get here to Answers, and that you use to download the installer. Call the Mathworks on th...

How to get password to install MatLab

It's normally the same one you use to get here to Answers, and that you use to download the installer. Call the Mathworks on th...

9 Tage ago | 0

| accepted

Answered

checking a matlab function for nested functions

See the attached function to list all the dependent m-files.

checking a matlab function for nested functions

See the attached function to list all the dependent m-files.

9 Tage ago | 0

Answered

counting the number of clusters

I agree with Stephan and findgroups() -- there are 8 "clusters." Below I use findgroups() to find the groups, then I store al...

counting the number of clusters

I agree with Stephan and findgroups() -- there are 8 "clusters." Below I use findgroups() to find the groups, then I store al...

9 Tage ago | 2

Answered

How to grab message from command window and take action in code depending on it.

I'm almost certain you do not want to do what you asked. It's bizarre. Why not just write a normal program with a GUI or an in...

How to grab message from command window and take action in code depending on it.

I'm almost certain you do not want to do what you asked. It's bizarre. Why not just write a normal program with a GUI or an in...

9 Tage ago | 1

| accepted

Answered

I need help with this

Try csvread() or dlmread() or readtable() or importdata().

I need help with this

Try csvread() or dlmread() or readtable() or importdata().

9 Tage ago | 1