# Image Analyst

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

**MATLAB Answers**

**0** Questions

**34,595** Answers

**File Exchange**

**16** Files

**Cody**

**0** Problems

**1** Solution

**Highlights**

RANK**2**

of 250,372

REPUTATION**68,434**

CONTRIBUTIONS

**0** Questions

**34,595** Answers

ANSWER ACCEPTANCE **
0.00%
**

VOTES RECEIVED**10,492**

RANK**29** of 17,392

REPUTATION**21,740**

AVERAGE RATING**4.70**

CONTRIBUTIONS**16** Files

DOWNLOADS **769**

ALL TIME DOWNLOADS**200776**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**8** Highlights

AVERAGE NO. OF LIKES**2**

**Content Feed**

how to subplot different size

Try subplot(2, 2, k); % k is 1, 2, 3, or 4 g = gcf; g.WindowState = 'maximized'; to make it a 2 by 2 array of images and ma...

5 hours ago | 0

Matlab equivalent of python code to rotate an image

@Marcel345614, thanks for reinforcing why I use MATLAB instead of Python! 😄 image=flipdim(image ,1); % is this correct?? No ...

5 hours ago | 1

What should go in a next-generation MATLAB X?

I wish there was a way to undo Editor text changes to the max level possible. Clicking the little blue curved arrow 50 times to...

5 hours ago | 0

I need to kow the exact process for making a 2016 stand alone executable

You can use the mcc command. mcc -m yourMFile.m If you still have the R2016a version, use that. Otherwise use your current v...

17 hours ago | 0

I want to only interpolate shorter amounts of data and leave the longer amounts of NaN not interpolated.

This works. It uses the bwareaopen() function in the Image Processing Toolbox to throw out stretches of nans longer than you sp...

21 hours ago | 0

How to use variable names/strings in a For cycle

See the FAQ for why that is a horrible idea: https://matlab.fandom.com/wiki/FAQ#How_can_I_create_variables_A1.2C_A2.2C....2C_A1...

1 day ago | 0

How do i assign the number(variable) to the name of variable?

You can simply do this data_N100 = 100; There is no prohibition of having numbers in the variable names. Hopefully you don't ...

1 day ago | 0

| accepted

file path error in matlab

It will work with any path as long as that file exists, which yours does not. Are you sure it has two dots in it? That would b...

1 day ago | 0

How to randomly choose three pixels and use their values in kmeans

See my attached example for how to do kmeans on a color image. In general kmeans is not a good color segmentation method. You'...

1 day ago | 0

Classify 7 classes of signals with svm classifier.

You can use Classification Learner. If you can't figure it out, attach your data after reading this: TUTORIAL: How to ask a qu...

1 day ago | 0

Change Symbol on Valleys

Try this: fs=100; % Sampling frequency (samples per second) dt = 1/fs; % seconds per sample; the sampling period t=0:dt:10; ...

2 days ago | 1

how to break large data into groups and run same steps in a loop for each group?

Try this: tic; x = 1:100000000; data= [ sin(x), cos(x), tan(x), x]; numElements = length(x); theMeans = zeros(1, 4); for k...

2 days ago | 1

| accepted

Measure the distance of a curve within an image

I'd just get a mask of the blue line. Like [r, g, b] = imsplit(rgbImage); blueMask = r == 0 & g == 0 & b == 255; or you can ...

2 days ago | 0

Please write a script for summation of 1/k

Is summation.m a function or a script? If it's what you posted already, it's a script and should not give any error about input...

3 days ago | 0

How to automatically obtain shape coordinates

Here is yet another way: grayImage = imread('uno.png'); subplot(2, 2, 1); imshow(grayImage, []); title('Original Image.') i...

3 days ago | 0

How to save figures on the program general folder?

Use pwd to get the current folder where your source code is, and then use fullfile(), isfolder(), and exportgraphics(): % Defin...

3 days ago | 0

| accepted

How to add color to the specified blob in a binary image according to the aspect ratio

Try this (untested): % Initialization Steps. clc; % Clear the command window. close all; % Close all figures (except thos...

3 days ago | 0

| accepted

PIXEL counting at grey scaled picture

And yet another option: brightRegions = grayImage >= 200; numBrightPixels = nnz(brightRegions);

3 days ago | 0

how can i insert photo to a graph location

To put an image onto a graph, see this demo: % Draw a small image inset in the upper right corner of a larger plot. % Ref: htt...

3 days ago | 0

How to calculate velocity frame by frame

I'd probably just get the velocity of the central part as it moves left. So take the average horizontal profile along some band...

3 days ago | 0

| accepted

How can I properly fit the skeleton in the first image?

Why is it hard? Just figure out how many rows 1/8 of the total number of rows is and take those with regular indexing. xy = ra...

4 days ago | 0

Analyzing medal counts in all olympia data

fileName = 'medals_total.csv' t = readtable(fileName); % Get rid of last row t = t(1:end-1, :) counts = t.CombinedTotal; so...

4 days ago | 0

| accepted

Program on digital processing of thoracic x-ray images

If you cannot use MATLAB, then I'm afraid we cannot help. This is a forum for helping people with their MATLAB programming. Wh...

4 days ago | 0

how do i update a value of a particular column of a cell without changing other columns and store the updated value along with other columns in other cell?

[~, ~, raw] = xlsread(inputFileName); % Read from input file. raw{someRow, someColumn} = someDifferentValue; % Replace the cell...

4 days ago | 0

| accepted

solutions for every iteration

You need to index your variables to make them vectors (lists of values) rather than just overwriting them every iterations, like...

4 days ago | 1

convert RGB to YUV and convert YUV to RGB

This works fine: % Initialization Steps. clc; % Clear the command window. close all; % Close all figures (except those of...

4 days ago | 0

Distance between points in a graph

I your points are in a matrix called xy, with each point being a row, and you want to find the distance of every point to every ...

4 days ago | 0

| accepted

i am new to matlab and i want to learn, can anyone help me with this please!!!!

See my attached demo for polyfit. It will be easy for you to adapt it. coefficients = polyfit(x, y, 2); yFit = polyval(coeffi...

5 days ago | 0

| accepted

work(x, xvector, fdata) Unrecognized function or variable 'x'.

Evidently this is everyone's homework problem. Go here for a similar question: https://www.mathworks.com/matlabcentral/answers...

5 days ago | 0