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

Gray scale image from excel pixel files

Try this grayImage = uint16(csvread(filename)); imshow(grayImage, []); If that doesn't work, try importdata(), readtable(), r...

Gray scale image from excel pixel files

Try this grayImage = uint16(csvread(filename)); imshow(grayImage, []); If that doesn't work, try importdata(), readtable(), r...

en dag ago | 1

| accepted

Answered

How to set a title to the axes

Try this: title(handles.axes1, 'This is axes1', 'FontSize', 20); title(handles.axes2, 'This is axes2', 'FontSize', 20);

How to set a title to the axes

Try this: title(handles.axes1, 'This is axes1', 'FontSize', 20); title(handles.axes2, 'This is axes2', 'FontSize', 20);

2 dagar ago | 0

Answered

Dividing x tick labels

Why not simply use xticks() to set whatever tick marks you want, like % Create some sample plot: hFig = figure; plot(1:10) ...

Dividing x tick labels

Why not simply use xticks() to set whatever tick marks you want, like % Create some sample plot: hFig = figure; plot(1:10) ...

2 dagar ago | 0

| accepted

Answered

How to differentiate a series of functions denoted by varying a parameter i=1,2 in (h_i)?

Don't use a loop. For just 4 cases, just write them out h_1(x_1,x_2) = x_1 + (x_2) * (x_1); h_2(x_1,x_2) = x_2 + x_1 * x_2^2;...

How to differentiate a series of functions denoted by varying a parameter i=1,2 in (h_i)?

Don't use a loop. For just 4 cases, just write them out h_1(x_1,x_2) = x_1 + (x_2) * (x_1); h_2(x_1,x_2) = x_2 + x_1 * x_2^2;...

2 dagar ago | 0

Answered

index exceeds no of array elements

What about the error do you not understand? It says that the "Index exceeds the number of array elements" meaning that indx is ...

index exceeds no of array elements

What about the error do you not understand? It says that the "Index exceeds the number of array elements" meaning that indx is ...

2 dagar ago | 0

Answered

How to fined specific Kth values of an vector with n element

Use b as a linear index for a: a = [ 2 4 6 8 10] b = [1 3 5] c = a(b)

How to fined specific Kth values of an vector with n element

Use b as a linear index for a: a = [ 2 4 6 8 10] b = [1 3 5] c = a(b)

2 dagar ago | 0

Answered

Matlab GUI doesn't update the switch value while running

Put in a drawnow whenever you want ot force the screen to repaint drawnow;

Matlab GUI doesn't update the switch value while running

Put in a drawnow whenever you want ot force the screen to repaint drawnow;

3 dagar ago | 0

Answered

Calculate mean of every 4 elements in a row for an array

Try conv(): m = randi(9, 35040,60); % Create random sample data kernel = ones(1, 4)/4; % Kernel to get mean over 4 elments ti...

Calculate mean of every 4 elements in a row for an array

Try conv(): m = randi(9, 35040,60); % Create random sample data kernel = ones(1, 4)/4; % Kernel to get mean over 4 elments ti...

3 dagar ago | 0

Answered

How I find 8-connectivity of a binary image like [1 0 0 0 ;0 1 0 0;0 0 1 0;0 0 0 1] with gry level 1..in matlab... I want to make code program in matlab

Check the label: [labeledImage, numberOfBlobs] = bwlabel(binaryImage, 8); % Label with 8-connectivity if labeledImage(1,1) == ...

How I find 8-connectivity of a binary image like [1 0 0 0 ;0 1 0 0;0 0 1 0;0 0 0 1] with gry level 1..in matlab... I want to make code program in matlab

Check the label: [labeledImage, numberOfBlobs] = bwlabel(binaryImage, 8); % Label with 8-connectivity if labeledImage(1,1) == ...

3 dagar ago | 0

Answered

how do i open a browser in matlab ?

Try this: % Have user browse for a file, from a specified "starting folder." % For convenience in browsing, set a starting fol...

how do i open a browser in matlab ?

Try this: % Have user browse for a file, from a specified "starting folder." % For convenience in browsing, set a starting fol...

3 dagar ago | 0

Answered

I don't know how to apply RMS on blocks of an image using blockproc function in matlab. please help me with this.

Try this: % Uses blockproc() to get RMS of image blocks. % Demo code to divide the image up into 8 pixel by 8 pixel blocks % ...

I don't know how to apply RMS on blocks of an image using blockproc function in matlab. please help me with this.

Try this: % Uses blockproc() to get RMS of image blocks. % Demo code to divide the image up into 8 pixel by 8 pixel blocks % ...

3 dagar ago | 0

| accepted

Answered

I keep getting this error, Array indices must be positive integers or logical values. Error in Problem_4 (line 11) for k=2:length(t)

See The FAQ By the way, you forgot ot attach 'RDData.xlsx' so we can't run your code. And you forgot to attach the entire erro...

I keep getting this error, Array indices must be positive integers or logical values. Error in Problem_4 (line 11) for k=2:length(t)

See The FAQ By the way, you forgot ot attach 'RDData.xlsx' so we can't run your code. And you forgot to attach the entire erro...

3 dagar ago | 0

Answered

How to find the angular frequency and theta

I see nothing wrong with using linspace() to define variables, but usually one supplies the number of elements, like 1000 or wha...

How to find the angular frequency and theta

I see nothing wrong with using linspace() to define variables, but usually one supplies the number of elements, like 1000 or wha...

3 dagar ago | 0

| accepted

Answered

morphological operation and filtering

Try this. Adjust findpeaks() parameters as needed. clc; % Clear the command window. close all; % Close all figures (excep...

morphological operation and filtering

Try this. Adjust findpeaks() parameters as needed. clc; % Clear the command window. close all; % Close all figures (excep...

3 dagar ago | 1

Answered

Making one histogram with multiple images

Try this demo to take the histogram of the original image, the masked image, and the contrast adjusted image. You're doing all ...

Making one histogram with multiple images

Try this demo to take the histogram of the original image, the masked image, and the contrast adjusted image. You're doing all ...

3 dagar ago | 0

Answered

How can I detemine the presence of some colors (e.g white, light brown, dark brown, red, blue gray and black) in a piture like attached one?

With 16 millino colors possible in a24 bit RGB image, probably no color has that much. You'd be best off defining a limited num...

How can I detemine the presence of some colors (e.g white, light brown, dark brown, red, blue gray and black) in a piture like attached one?

With 16 millino colors possible in a24 bit RGB image, probably no color has that much. You'd be best off defining a limited num...

3 dagar ago | 0

| accepted

Answered

Rotating Mask of Sobel Opreator

Use imgradient(). It's the gradient so it's essentially the slope at all angles. Well not exactly but anyway, the edges it fin...

Rotating Mask of Sobel Opreator

Use imgradient(). It's the gradient so it's essentially the slope at all angles. Well not exactly but anyway, the edges it fin...

3 dagar ago | 0

Answered

How to change extension of selected file extensions in a directory?

Try this: % Specify the folder where the files live. myFolder = pwd; % or 'C:\Users\yourUserName\Documents\My SP2 files'; or w...

How to change extension of selected file extensions in a directory?

Try this: % Specify the folder where the files live. myFolder = pwd; % or 'C:\Users\yourUserName\Documents\My SP2 files'; or w...

3 dagar ago | 0

Answered

What do the pixelIdxlist mean?

Sk, are you trying to filter based on blob size? If so, check out bwareaopen() or bwareafilt().

What do the pixelIdxlist mean?

Sk, are you trying to filter based on blob size? If so, check out bwareaopen() or bwareafilt().

4 dagar ago | 0

Answered

Turn a X Y Z matrix into a point cloud

Try plot3(x, y, z); or scatter3(x, y, z); or, if you have a surface rather than a cloud surf(x, y, z);

Turn a X Y Z matrix into a point cloud

Try plot3(x, y, z); or scatter3(x, y, z); or, if you have a surface rather than a cloud surf(x, y, z);

4 dagar ago | 1

Answered

help me in this

You can use image processing. Click here for more help. You can use sum(binaryImage(row, :)) to count the number of 1's in the...

help me in this

You can use image processing. Click here for more help. You can use sum(binaryImage(row, :)) to count the number of 1's in the...

5 dagar ago | 0

Answered

Removing Short Runs from Binary Data

There is a built-in function for this, if you have the Image Processing Toolbox. Two functions actually. You can use bwareafil...

Removing Short Runs from Binary Data

There is a built-in function for this, if you have the Image Processing Toolbox. Two functions actually. You can use bwareafil...

6 dagar ago | 0

| accepted

Answered

K-Means Matlab cluster assignment

Anastasis, below is a full demo of how to sort the labels according to how far the cluster centroid is from the origin, and how ...

K-Means Matlab cluster assignment

Anastasis, below is a full demo of how to sort the labels according to how far the cluster centroid is from the origin, and how ...

6 dagar ago | 0

| accepted

Answered

How to create an object using class name

That won't work for all types of objects, like structures, other custom-designed classes, etc. I think your best bet is to just...

How to create an object using class name

That won't work for all types of objects, like structures, other custom-designed classes, etc. I think your best bet is to just...

7 dagar ago | 0

Answered

how to assign certain range of pixel values with desired color for classification of image?

Try imoverlay() to overlay your segmented/masked image over your original.

how to assign certain range of pixel values with desired color for classification of image?

Try imoverlay() to overlay your segmented/masked image over your original.

9 dagar ago | 2

Answered

Removing unwanted components in a binary image?

You need to define what you want. For example, do you want just the largest blob with bwareafilt(bw, 1)? Or blobs larger than ...

Removing unwanted components in a binary image?

You need to define what you want. For example, do you want just the largest blob with bwareafilt(bw, 1)? Or blobs larger than ...

9 dagar ago | 0

Answered

How to generate a fixed number of float numbers and their sum is a fixed float number?

See this File Exchange submission: randfixedsum (click here)

How to generate a fixed number of float numbers and their sum is a fixed float number?

See this File Exchange submission: randfixedsum (click here)

9 dagar ago | 0

| accepted

Answered

How to plot graph for below mention mathamatical equation

Try this: BSI = 1; % Just a guess since it was not specified. % Define other constants that were given in the question. A = 0...

How to plot graph for below mention mathamatical equation

Try this: BSI = 1; % Just a guess since it was not specified. % Define other constants that were given in the question. A = 0...

9 dagar ago | 0

| accepted

Answered

3 Way Table In Matlab

With fprintf() you can make the table look as much like that as ASCII characters possibly can. For example fprintf('| |...

3 Way Table In Matlab

With fprintf() you can make the table look as much like that as ASCII characters possibly can. For example fprintf('| |...

9 dagar ago | 0