Answered
How to speed up/ Reduced Time the following code Using Parallel Processing/GPU
Why is this inside the loop: [~,Y] = meshgrid(1:lenImage,1:10000); % make a grid lenImage doesn't change so that should be out...

2 years ago | 0

Answered
smoothing datasets containg nan
Have you seen the "DataCleaner" app on the Apps tab of the tool ribbon? Try it.

2 years ago | 0

Answered
Creating Binary Image from Polygon Label in MATLAB
You have to click the Export button and then export to the workspace to a variable, like groundTruth. Then you can get the (x,y...

2 years ago | 1

| accepted

Answered
find the longest diagonal sum of a matrix.
Assign something to matrix first, like m = magic(5) then call your function largestDiagonalSum = diag_sum(m)

2 years ago | 0

Answered
How to remove thin lines in binary image
Like Matt said, use imopen to get rid of thin lines. outputImage = imopen(binaryImage, ones(3, 3)); To get rid of small object...

2 years ago | 0

Answered
MATLAB tells me "Array indices must be positive integers or logical values." The issue resides at "y_pred = ..." Not sure why.
Probably one of the most asked questions. So rather than explain it again, just see the FAQ for a thorough discussion. Once yo...

2 years ago | 0

Answered
How can the plot be divided into 2 using the graph line?
It looks like all the points on the right have a y value greater than about 6, so just do rightIndexes = (y >= 6); xRight = x(...

2 years ago | 0

Answered
number of objects in images
Yeah, that's because you're using some AI chatbot to write your code instead of trying to understand basical fundamental image p...

2 years ago | 0

Answered
how to use sound?
See attached demo. Adapt as needed, perhaps adding scroll bars to control fs.

2 years ago | 1

Answered
How to binarize a image with low contrast in certain areas?
imadjust is not necessary at all. Try to flatten the background before using global thresholding (imbinarize) by first using ad...

2 years ago | 0

Answered
Block Processing without Builtin blockproc
Looks like the other (chatbot) answer didn't get it fully correct. You need to do the multiplication the correct way and then s...

2 years ago | 0

Answered
Crop a specific area for the sem image
See my Image Segmentation Tutorial in my File Exchange: Image Analyst's File Exchange It's a generic, general purpose demo of ...

2 years ago | 0

Answered
WRONG RESULT USING CNN
What you read or misread: "deep learning methods gave higher accuracy resukts complaring with machine learning methods" is incor...

2 years ago | 0

Answered
how to detect circle object on video
See my Image Segmentation Tutorial in my File Exchange: Image Analyst's File Exchange It's a generic, general purpose demo of ...

2 years ago | 0

| accepted

Answered
How to plot a sinc function correctly?
In general, the spectrum and the time/spatial domain are inversely related. So the wider your pulse if with respect to your tot...

2 years ago | 1

| accepted

Answered
Want to find the coordinates of the particles from an image
Have you tried imfindcircles in the Image Processing Toolbox?

2 years ago | 0

Answered
How to plot the best fitted ellipse or circle?
See the FAQ: https://matlab.fandom.com/wiki/FAQ#How_can_I_fit_a_circle_to_a_set_of_XY_data? https://matlab.fandom.com/wiki/FAQ...

2 years ago | 1

Answered
Converting Image Dimensions from Pixels to Nanometers
Multiply by a scaling factor determined by measuring the distance of a known object in your image. See my attached demo.

2 years ago | 0

| accepted

Answered
How to determine the threshold for SSIM of images?
You can set the threshold for whatever you want. I have no idea how you'd even use it. I'm not sure what you did. You cannot ...

2 years ago | 0

Answered
How to represent gray scale images as affine subspaces?
I don't know what you mean. What's the context? What do you mean by "model"? What do you mean by "affine subspaces"? Do you ...

2 years ago | 0

Answered
How to code the following expression in MATLAB
To get L random columns from xgssk, you can use randperm randomColumns = randperm(size(xgssk, 2), L); X = xgssk(1:8, randomCol...

2 years ago | 0

Answered
find diameter based on the centreline and edge
Compute the Euclidean Distance Transform using bwdist and the skeleton using bwskel then multiply those two images together. Fu...

2 years ago | 1

| accepted

Answered
How to avoid using 'for' loop
Just modify youir calculateValue() so that it takes multiple values of R (can handle R being a vector) and returns a vector inst...

2 years ago | 0

Answered
How to make close surface in dicom image
I think you already know how to use imclose from the help, but anyway, try this grayimage = dicomread(fileName); % Get original...

2 years ago | 0

| accepted

Answered
How Could we mirror and Freehand ROI Object in Matlab?
Try this demo. You can draw some ROI over the image and then it will get the (x,y) coordinates and then flip them vertically ab...

2 years ago | 0

| accepted

Answered
plot two images over each other
Try labeloverlay or imoverlay or How to overlay a foreground image over a background image? - MATLAB Answers - MATLAB Central ...

2 years ago | 1

| accepted

Answered
Is "Undocumented Secrets of MATLAB Java Programming" by Yair Altman still up to date?
@Yair Altman has a new book out sometime in the past 2 or 3 years.

2 years ago | 0

Answered
2D color map shows the image correct but the Y scale is flipped.
Use either axis ij or axis xy until it's the way that you want it.

2 years ago | 0

Answered
How can I mark the vetebra with different colors?
First you segment the image to identify the individual vertebra. Then you label the image with bwlabel or bwconncomp. Then you...

2 years ago | 0

Answered
fft of breath signal
Looks like it has a lot more sample points, hence it can follow that curve better. Yours has fewer points so it looks choppy. ...

2 years ago | 0

Load more