Answered
(kmeans clustering) Why doesn't image resulting from labeloverlay have the same size as original image?
Don't do [0,5]. That argument does not apply to RGB images (like what labeloverlay returns), it only applies to gray scale imag...

2 years ago | 0

Answered
How to change the pixel value int16 to new value?
Not sure I understand this: "I want to convert all the pixel value with new value IMG_cps" but why can't you just say IMG(:,:) ...

2 years ago | 0

Answered
How to find a concentric irregular polygon
I'd just find the centroid of the shape, then run around the perimeter finding the distance to the centroid. Then use normal tr...

2 years ago | 0

Answered
How to calculate the pixel value segmentation
I believe the total pixel count would be numel(P~=0).

2 years ago | 0

Answered
how to separate and show original color of foreground and background image in matlab?
You need to "segment" your image. How you do that depends on what your foreground and background look like. I'm attaching a de...

2 years ago | 0

Answered
how to show color of image in a pixel coordinate?
After you display the image, do this: impixelinfo

2 years ago | 0

Answered
How to rotate some part of image?
You can use the radon transform to determine the angle you need to rotate by. See how I rotated the football in the attached de...

2 years ago | 0

Answered
Why does it take MATLAB so long to print hello world?
What MATLAB commands did you issue from the command line? What you gave does not work: >> $ time matlab -nojvm -noFigureWindow...

2 years ago | 2

Answered
how velocize operation boolean
You asked : "(i want to find idx element that change from 0 to 1 )" So do this: a = [5, 0, 1, 9, 0, 1]; index = strfind(a, [...

2 years ago | 0

Answered
how velocize operation boolean
That code has nothing to do with your subject line. You want logicalIndexes = a == 1 % or linearIndexes = find(a == 1) Same...

2 years ago | 0

Answered
Estimating the diameter and frontal area of evaporating droplets
Try this: % Demo by Image Analyst clc; % Clear the command window. close all; % Close all figures (except those of imtool...

2 years ago | 0

| accepted

Answered
Image combination of a selected feature / image processing
You want to invert your mask (second image) and use it as logical indexes to your original image (grayImage). grayImage(~mask) ...

2 years ago | 0

Answered
Operation with logical data. Which is better?
Those are different things you're showing. "a.*(a<5)" is a double vector. Your A only shows positive values, while B shows non-...

2 years ago | 0

Answered
There is anyway that I can plot a graph like this in MatLab with standard deviation ?
Do you mean like the "errorbar" LinePlot shown about half way down the page here: https://www.mathworks.com/products/matlab/plo...

2 years ago | 0

Answered
How to detect marker with specific feature on it?
Try this. Note that I only found 2 markers because one of them is not surrounded by a solid black circle -- it has a gap, like ...

3 years ago | 1

| accepted

Answered
How to find number of intensity levels in an image
Just mentioning imhist in case you wanted the number of pixels at each gray level (distribution) instead the number of unique gr...

3 years ago | 2

Answered
find the coordinates 5 first white pixels in an image
Try this: % Find coordinates of the last and first white pixel % First image pix_amarelor = imread('pac14_e.png'); [row1firs...

3 years ago | 0

| accepted

Answered
Insert an external image in a video
You can paste your image on top of your frame before you send it to videoWriter. See my attached copy and paste demo. I've als...

3 years ago | 0

Answered
I am trying to find the radius of an arc in an image.
Try this. I'm using find() to get the x and y of the mask rather than a double for loop like @William Rose. The computed radiu...

3 years ago | 2

| accepted

Answered
Does MATLAB Mobile count as a license install?
I don't believe so. I have installed it on my phone and it does not show up at all in my list of licenses. You can try it. Ju...

3 years ago | 0

| accepted

Answered
Smallest mask enclosing a polygon
Perhaps you'd be interested in the attached paper on "Minimum Perimeter Polygon"

3 years ago | 1

Answered
Live Image Processing and Tracking Image Features
Call tech support and ask for Andrew B in the image acquisition team. He helped me out with such an issue. There are other fun...

3 years ago | 0

| accepted

Answered
I cannot read and display this image
Use imshow() instead of disp(): imshow(im);

3 years ago | 0

Answered
Display an image processed in LAB channel
The code looks right. The problem is that CLAHE is often not a good algorithm because it's non-linear. Try imadjust instead.

3 years ago | 0

Answered
Smallest mask enclosing a polygon
Not sure what you're calling mask and what you're calling polygon, but the smallest shape that would enclose the blue shape with...

3 years ago | 0

Answered
Drawing auto polyline around tif image
Not sure how I missed this when it was first posted but here is one way I'd do it. %% Extract the contour from the BC image cl...

3 years ago | 0

Answered
How to solve error "access denied" when using mkdir?
This is what I'd do folder = '\\dbfz-user.leipzig.dbfz.de\user$\jboettner\Documents\HiWi\Matlab\File import\angepasste_Ausgabed...

3 years ago | 0

Answered
In an assignment A(:) = B, the number of elements in A and B must be the same. How can I fix this error?
See the FAQ for a thorough general explanation. https://matlab.fandom.com/wiki/FAQ#%22In_an_assignment_A(I)_=_B,_the_number_of_...

3 years ago | 0

Answered
calculate the averages of non-squared matrix blocks
Here is one way (there are others): % Define the 12x4 matrix A = [1 0 2 0; 0 1 3 0 ; 1 1 0 0 ; 0 2 3 1 ; 3...

3 years ago | 0

Load more