Community Profile

photo

Image Analyst


28,599 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

Image Analyst's Badges

  • 36 Month Streak
  • Most Accepted 2014
  • Thankful Level 4
  • Grand Master
  • Revival Level 4
  • Knowledgeable Level 4
  • First Answer

View details...

Contributions in
View by

Answered
Is HSV based algorithm good with light effect?
Well, any color segmentation algorithm might have problems if the light intensity is changing. For best results you should put ...

1 hour ago | 0

Answered
How can I calculate the length of a vector, if x and y of a vector are both in formula form?
The v is a vector, and the question wants the length of v but not in elements, but in real world units. For example if my vx wa...

2 hours ago | 0

Answered
How to find pixels of one cluster that are enclosed by pixels of another cluster?
Get a binary image of each cluster by itself. Then to find which in cluster2 are also in cluster1, do an AND operation inBoth ...

2 hours ago | 0

Answered
Match each element of one array with each element of other array without loops
You say "Every entery of the loop has to comapre the full array cc." You might want to take a look at pdist2(), if you have the...

2 hours ago | 0

Answered
What would be the best way to generate particle tracks in XYZ?
See my attached collection of random walk demos. Adapt as needed.

2 hours ago | 0

Answered
Does anyone now the coding for de-quantization?
If you've lost it, then you can't get it back. If I have a thousand numbers with values going between 0 and 100, and I quantize...

2 hours ago | 0

Answered
how can i create a random motion with a specified curve
See my attached demo to fit a decay curve. Put in the points you see on the graph to train it. For example (0.5, 8) and (5, 1)...

2 hours ago | 0

Answered
Separate the rock in the image below from the background
I would try the Color Thresholder on the Apps tab of the MATLAB tool ribbon. Experiment with different color spaces, though I t...

2 hours ago | 0

Answered
does anyone have the code for brain tumor detection using matlab
Attached is a demo I've posted before.

2 hours ago | 0

Answered
fitting rectangle through data points
What I would try first is to use principal components analysis ("PCA") to identify the two axes. Use pca() if you have the stat...

3 hours ago | 0

Answered
how to solve the problem of matrices dimension must agree
Make it an RGB image also rgbImage = cat(3, Ir_LL, Ir_LL, Ir_LL); newhost_LLr = rgbImage + (t * w_LL);

3 hours ago | 0

Answered
Regarding Increase Resolution?
You "can't" increase the optical/physical resolution in real world units from a single image, though you can increase the digita...

1 day ago | 2

Answered
Error message "Index exceeds matrix dimensions"
How about: % Find out how many rows we should print out, allowing for different sized matrices: maxNumberOfRows = min(size(iM,...

3 days ago | 0

Answered
I need to write a GUI that shows an image and allows to draw on it by selecting different colors
Attached is a masking demo and a drawing demo that may give you a start.

3 days ago | 0

Answered
Plotting intensities, gradients and variance of images (varying with time) on particular grid points.
See attached examples where I determine the means of frames of a video and plot them.

3 days ago | 0

| accepted

Answered
Cropping a Folder of Images
See code samples in the FAQ: https://matlab.fandom.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F Put imcrop() in the mi...

3 days ago | 0

Answered
Add SINGLE element to array or vector
For an existing vector x, you can assign a new element to the end using direct indexing. For example x = [1 2 3] x(4) = 4 Ano...

3 days ago | 2

| accepted

Answered
How to improve optic disc removal code?
Find algorithms in papers listed here in Vision Bibliography

4 days ago | 0

Answered
how to calculate the area of an object?
You shouldn't calculate areas based on the grayscale image. You must segment it first into foreground and background areas and ...

5 days ago | 0

| accepted

Answered
Swap first and last word in a string
Here's one way: % Create sample string. str = 'one two three four five'; % Split apart into individual words without spaces. ...

8 days ago | 0

Answered
Grouping small pixels to make larger usable cells.
Try superpixels(). Or try my attached RGB classifier demo. Or try my blockproc() demo.

8 days ago | 1

| accepted

Answered
Filtering outlier in 2D coordinate data
Well this works for "the problem I have at the moment", though there are even simpler methods, and more sophisticated methods. ...

8 days ago | 0

| accepted

Answered
subtract each pixel from average pixel value
Try (for an integer gray level image): newImage = double(yourImage) - meanValue; where you said you already have the meanValue...

8 days ago | 1

Answered
User defined minimum Function
Try this: function colMins = GetColumnMins(m) % m is a matrix colMins = min(m, [], 1); You can rename GetColumnMins, m, and ...

8 days ago | 0

Answered
Is the .jpg image one-dimensional and two-dimensional?
JPG images are already demosaiced. I think you're using a raw image. Raw images usually are not demosaiced - they're just red,...

11 days ago | 1

Answered
Counting the number of a specific word in text.
Instead of A=input(filename,'s'); try this: [folder, baseFileName] = uigetfile('*.*'); filename = fullfile(folder, baseFileN...

12 days ago | 0

Answered
How to plot like a movie this 30 heatmaps
See attached demo where I plot some stuff in a series, then construct a movie from the series of plots.

12 days ago | 0

Answered
How can I find an image in its miniature form in another image ?
Use normxcorr2() with the template being the mini-image. See my canned demo, attached. Change my template to yours, which is t...

13 days ago | 0

| accepted

Answered
Pad empty spaces in matrix with 0
Try this: c1m_wrf = [1 4 6 3 7 3 ] c2m_wrf = [4 6 2 9] c3m_wrf = [5 5 8 2 5] c4m_wrf = [4 8 1 3 9 4 ] maxLength = max([leng...

13 days ago | 1

| accepted

Answered
Array indices must be positive integers or logical values.
It's a FAQ so see the FAQ for complete info: Click here for the FAQ In short, you can't start with x(0) since 0 is not an allow...

13 days ago | 0

Load more