Community Profile

photo

Image Analyst


Last seen: Today Active since 2010

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

Programming Languages:
MATLAB, Visual Basic
Spoken Languages:
English

Statistics

All
  • MATLAB Central Treasure Hunt Finisher
  • Most Accepted 2021
  • 36 Month Streak
  • Solver
  • Personal Best Downloads Level 5
  • Editor's Pick
  • First Review
  • 5-Star Galaxy Level 5
  • First Submission
  • Most Accepted 2014
  • Thankful Level 4
  • Grand Master

View badges

Content Feed

Answered
Use colormap to color axis?
I think you'd have to use line() to draw colored line segments along the x axis: plot(1 : 10, 'b.-', 'LineWidth', 2, 'MarkerSiz...

alrededor de 4 horas ago | 0

Answered
how can i split mtrix to three ?
Here is a similar question and answer: https://www.mathworks.com/matlabcentral/answers/1629495-divide-array-into-3-parts#answer...

alrededor de 4 horas ago | 0

Answered
Using imagesc to show the relation between IPR VS ( \sigma vs E), problem with matrix
Try using drawnow; instead of hold on: N = 2^9; z = ones(N-1,1); c = 1; ranNum = diag(rand([N 1])); Nsig = 10^2; sigma = o...

alrededor de 4 horas ago | 0

Answered
For machine learning classification between two samples, how can I focus on certain frequency components as the separating feature?
Can you turn the spectra into images with spectrogram() and then use those for your network input? I saw a MATLAB demo where th...

alrededor de 4 horas ago | 0

Answered
How can I find the distance between adjacent blobs in a segmented image?
What does "adjacent" mean? Same row or same column? What about along diagonals? To find rows and columns you could use kmeans...

alrededor de 4 horas ago | 0

Answered
How to create a countdown timer ?
See attached demo. Adapt as needed.

alrededor de 4 horas ago | 0

Answered
textscan don't read file correctly
That's not big at all. Try other functions like dlmread(), readcell(), readmatrix(), importdata(). Maybe one of them will work...

alrededor de 4 horas ago | 0

Answered
Plotting multiple functions getting an error
If you don't use syms and fplot(), you can do this: numPoints = 2000; w = linspace(0, 1000, numPoints); phase = atand(w/3)+at...

alrededor de 5 horas ago | 0

Answered
Taking averages of only a few rows out of several?
That's kind of ambiguous. Do you want a mean from each row, so you'll get 3 values? Or do you want all 300 values to be averag...

alrededor de 21 horas ago | 0

Answered
How to save image after encryption?
Unless your encryption produced another uint8 or uint16 image, you're probably best just saving it as a binary file with a .bin ...

alrededor de 21 horas ago | 0

Answered
Scale on x-axis
Use the xticks(0:0.2:0.8) function: Full demo: % Create sample data. x = linspace(0, 0.8, 256); period = 0.2; y = sin(2 * p...

alrededor de 21 horas ago | 0

Answered
Divide array into 3 parts
Maybe use this % Create sample data. N = 100 M = randi(9, N, 3) % Split matrix up into parts. [rows, columns] = size(M) en...

1 día ago | 0

Answered
In Scatter plot, make the largest data on the top
Maybe try sorting so that the higher value points are plotted last. Possibly (untested) % Sort Z so that bigger values are at ...

1 día ago | 0

Answered
Count number of blobs in rows only
I don't think that's the correct approach at all. What I'd do is to first identify the rows and columns of the centers of the p...

1 día ago | 0

| accepted

Answered
Unable to perform assignment because the left and right sides have a different number of elements.
What is size(batch(batch2_idx(i)).cycles) and what is the value of add_len(i)? Evidently they're not the same value so you're...

1 día ago | 0

Answered
Can anyone help me?
Because you have this: if 2300 > a fl = 8./a else ft = 0.0396 * a.^-0.25 end and because you never initialized ...

1 día ago | 0

Answered
Create random matrix (MATLAB)
@high speed I think what you need to do is to first construct a Latin Rectangle: https://en.wikipedia.org/wiki/Latin_rectangle ...

1 día ago | 0

Answered
Using interp1 to resample an image, results in NaN values.
@Star Strider spectra can be 2-D. For example a diffraction pattern is a 2-D spectrum. You can get a spatial frequency spectru...

1 día ago | 0

| accepted

Answered
How to plot the subplots but with less lines of code?
Try using the nexttile() function nexttile; instead of the subplot() function subplot(2, 3, j)

2 días ago | 0

Answered
use a custom distance with the kmeans
You might also consider SVM. It tries to find a dividing line between two groups such that the gap between the two groups is wi...

2 días ago | 0

Answered
How to calculate percentage of green and yellow in the image
Try this (untested) rgbImage = imread("peppers.png"); subplot(2, 2, 1); imshow(rgbImage); RGB = im2uint8(rgbImage); [gree...

3 días ago | 1

| accepted

Answered
use a custom distance with the kmeans
Here is code to randomly lay down points and draw thin black lines between a pair of points if they are far away from each other...

3 días ago | 0

| accepted

Answered
use a custom distance with the kmeans
Not sure why you think there are clusters. I'd just use pdist2() and then threshold to find points that are farther apart than ...

3 días ago | 0

Answered
Masking by pre-selected ROI and subtracting all other areas
You just need poly2mask() and regionprops(). Assuming you have your ROI in a list of (x,y) coordinates: [rows, columns, number...

3 días ago | 0

Answered
Help with for loop and if else statement
You need to index L and Q: L = linspace(0, 200, 2000); Q = ones(1, length(L)); % Initialize to 1 for k = 2 : length(L) i...

3 días ago | 1

Answered
Applying filter to 2D image using overlap and add method not working
Why not simply use conv2()? If those are the values, the image should not be all white. Try displaying final_and instead of ne...

3 días ago | 0

| accepted

Answered
How to draw a boundary line for spray image
Scan down the image to get the left edge mask = bwareafilt(mask, 1); % Get largest blob only (if you want that). [rows, column...

3 días ago | 1

| accepted

Answered
How to make a line plot with a colorbar as the third variable?
You need to have a colormap that is an N-by-3 array, not like your z which is a 1-by-4 array. Try this: % Initialization Steps...

3 días ago | 0

Answered
How to create a binary mask
Try adjusting the threshold value T in imbinarize() until you get the threshold you want: BW = imbinarize(I,T) creates a binary...

4 días ago | 0

Answered
Can I use median filtering without put the salt & pepper noise?
Not sure what "Can I use median filtering without put the salt & pepper noise?" means, but yes, you can use medfilt2() on an ima...

4 días ago | 0

Load more