Community Profile

# Image Analyst

##### Last seen: Today
29 803 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

View details...

Contributions in
View by

How can I compare distance (not only between two points, but also a set of points)
If you have the Statistics and Machine Learning toolbox, use pdist2(). It will give you the distance of every point to every ot...

ungefär 9 timmar ago | 0

How to convert multiple rgb image into grayscale and save them into a new folder?
See the FAQ:How_can_I_process_a_sequence_of_files? Put a call to rgb2gray() and imwrite() inside the loop. Write back if you s...

ungefär 9 timmar ago | 0

Retrieve all non-zeros indices except the first one for each row
Zero cannot be a linear index. This code will work: A = [2 0 1 0 0; 4 -9 0 5 0;0 0 2 0 -3;0 -3 2 0 0;1 2 0 0 6] linearIndexes...

ungefär 22 timmar ago | 0

| accepted

Output argument not assigned during call
The function should start like this: function [X, Y] = points(t, U, U0) X = []; % Make sure we return SOMETHING, even though i...

ungefär 23 timmar ago | 0

Total Length of an image
You'd have to do image analysis. This includes image segmentation to get a binary map of the coral alone, then you can either t...

en dag ago | 0

Maximum size squares sub-matrixe with all zeros (having the same diagonal of the mother matrix )
Here's a start. Sounds like homework maybe so I'll let you finish it: clc; clearvars; close all; workspace; fontSize = 16;...

2 dagar ago | 1

How can I make edges black and background white in an photo with detected edges?
Try this: clc; % Clear the command window. close all; % Close all figures (except those of imtool.) clear; % Erase all e...

2 dagar ago | 0

| accepted

How to find mean of selected values in a table with row gap???
This really should be in the FAQ since we see this question so often. But the standard trick is to reshape the vector into a 2-...

2 dagar ago | 1

| accepted

cropping 2 images together
You can probably determine where the peak of the cross correlation is. Then place a cropping box around that but you'll need to...

2 dagar ago | 0

Array indices must be positive integers or logical values error
See the FAQ: Subscript_indices_must_either_be_real_positive_integers_or_logicals? Try this: values = linspace(0,50,7500); for...

3 dagar ago | 0

Pixel values different for binary (logical array) image using impixel() vs accessing logical matrix normally
If you look up the documentation for impixel(), you'll see that it want coordinates in x,y format (i.e. column, row), NOT row, c...

3 dagar ago | 1

| accepted

Gray scale image from excel pixel files
Try this grayImage = uint16(csvread(filename)); imshow(grayImage, []); If that doesn't work, try importdata(), readtable(), r...

5 dagar ago | 1

| accepted

Help:I hava difficult in Circle LBP Code .
Try imshow(CircleLBP, []);

5 dagar ago | 0

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);

5 dagar ago | 0

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

5 dagar ago | 0

| accepted

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

5 dagar ago | 0

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

5 dagar ago | 0

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)

5 dagar ago | 0

Matlab GUI doesn't update the switch value while running
Put in a drawnow whenever you want ot force the screen to repaint drawnow;

6 dagar ago | 0

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

6 dagar ago | 0

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

6 dagar ago | 0

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

6 dagar ago | 0

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

7 dagar ago | 0

| accepted

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

7 dagar ago | 0

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

7 dagar ago | 0

| accepted

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

7 dagar ago | 1

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

7 dagar ago | 0

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

7 dagar ago | 0

| accepted