Answered
Defining boundaries of a curve
"what I'm trying to do is akin to density-based clustering" You might like to learn about dbscan help dbscan Wikipedia descri...

2 years ago | 0

Answered
Show boundingbox and label around segmented image
If C is your labeled image, untested code: props = regionprops(C, 'BoundingBox'); hold on; % Display all bounding boxes over ...

2 years ago | 0

Answered
How to plot these results?
Go here for plot options: https://www.mathworks.com/products/matlab/plot-gallery.html Pick one you like and adapt the sample c...

2 years ago | 0

Answered
How to resize imtool window?
Rather than keep resizing the imtool window as the user zooms in or out, why not just maximize the window at the very beginning ...

2 years ago | 0

| accepted

Answered
bwlabel changes the number of pixels in blobs
Your image is not a binary image. It's an RGB image. bwlabel returns a labeled image as a double, not a binary image as you sh...

2 years ago | 0

| accepted

Answered
how "atestinput" could be recogrnised in matlb and how it is calculated in testing of image clasification؟
MATLAB will automatically create/define variables using the class of the first thing assigned to them. By the way, I would not ...

2 years ago | 0

Answered
images issues on Ubuntu
Do what it says in the FAQ: https://matlab.fandom.com/wiki/FAQ#After_installation,_MATLAB_crashes_or_gives_an_error_message_whe...

2 years ago | 0

Answered
How do I zero out a frequency of an audio signal?
Did you try something like spectrum = fft(signal); spectrum(kt-200 : kt+200) = 0; denoisedSignal = ifft(spectrum); if kt is ...

2 years ago | 0

Answered
I get the error:index in position 1 is invalid. array indices must be positive integers or logical values
It's thoroughly discussed in the FAQ: https://matlab.fandom.com/wiki/FAQ#%22Subscript_indices_must_either_be_real_positive_inte...

2 years ago | 0

Answered
Fatal Startup Error on R2022b
Do exactly what it says in the FAQ: https://matlab.fandom.com/wiki/FAQ#After_installation,_MATLAB_crashes_or_gives_an_error_mes...

2 years ago | 0

Answered
Not Enough Input Arguements (Line 9)
You need to call your function's file importfile.m, not data.m. Then you need to call it like this: importfile('c:\mydata\what...

2 years ago | 0

Answered
Hello good... I would like to know how I can skip the comments header of a text file with data for a graph please :c
@Lya Lopez, You can use readmatrix with the NumHeaderLines option: data = readmatrix(filename, 'NumHeaderLines', 3); % Skip fir...

2 years ago | 0

Answered
How can I delete data from my table if two centroids from regionprops are the same?
Chances are low that you will ever have the same centroid location exactly, out to 16 decimal places. I suggest you use ismembe...

2 years ago | 0

Answered
Hello everyone How could I get a video of the following animation?
Use writeVideo. See attached examples where I change a plot/graph/surface plot and make a movie out of the individual frames. ...

2 years ago | 0

Answered
bwconncomp reports only one connected component when there are obviously many hundreds
There is just one connected, semi-porous blob as you can see from the screenshot below: s = load('imt2.mat') imt2 = s.imt2; p...

2 years ago | 1

| accepted

Answered
How would I plot and connect two points properly?
Instead of those two plot calls, do it this way. x=1; y=3; a=2; b=1; plot([x, a], [y, b], 'm-d', 'LineWidth', 2, 'MarkerSiz...

2 years ago | 1

Answered
Plotting functions using subplot
% f(x) = 3 sin2 (x) + cos(x/2), x ∈ [−3, 6.5] % g(x, y) = x 4 − 8y 2 + x + 4, x, y ∈ [−5, 5] % r(φ) = 2 + cos(5φ), φ ∈ [0, 2...

2 years ago | 0

Answered
Determining Signal to Noise Ratio
You need to smooth the data somehow, like with movmean, movmedian, or sgolayfilt. Then once you have the "noise free signal, yo...

2 years ago | 0

Answered
How to code NESTED CYCLES
Check them in advance: if isempty(b) % What to do return; end if isempty(f) % What to do return; end fo...

2 years ago | 0

Answered
Problem with 'InsertShape'?
There is probably extra points in the outlines, "Points". If you had attached your data, we could have helped you.

2 years ago | 0

Answered
what item do I need?
Learn how to use App Designer: https://www.mathworks.com/products/matlab/app-designer.html

2 years ago | 0

Answered
Blue Channel Not Separating from Image
Your image is a gray scale image; it is NOT a RGB true color image. There is no blue channel. You can make your code more robu...

2 years ago | 0

Answered
Energy (uniformity) of an image
Depends on what you mean by energy. Pixel values are, for a reflective image like taken with a regular video camera, already in...

2 years ago | 0

Answered
How to zoom in to a particular point of an image?
Try changing the axis limit by calling xlim and ylim to be the ranges you want. help xlim

2 years ago | 1

Answered
dilate a shell while keeping openings
Not sure what the "problem" is. You didn't say. Yes, dilation will make gaps closer, of course. Do you not want the gaps to g...

2 years ago | 0

Answered
Is there something similar to polyval for circle fitting?
What's wrong with downloaded functions? I'm attaching one I use, along with a paper for more general purpose one.

2 years ago | 0

| accepted

Answered
find what is the bounding box that encircles the whole objects as one unit?
No looping and using min() and max() needed. Just use bwconvhull and regionprops. Something like (untested): % Read the image...

2 years ago | 0

Answered
How do I determine the thickness of the ice at the leading edge of the airfoil from the image?
Subtract the first image from the icy image using imabsdiff. Then call bwareaopen to throw out blobs too small to consider. Th...

2 years ago | 0

Answered
collect all same coins in each figure
This is just what my tutorial does. See my Image Segmentation Tutorial in my File Exchange: Image Analyst's File Exchange It'...

2 years ago | 0

Answered
How I can normalize a range of columns of an image
It doesn't matter that the values in those columns vary. But if img is of type uint8, you need to cast it to double otherwise w...

2 years ago | 0

Load more