Answered
I want to insert rectangle shape to the real time image
You might find using rectangle to draw into the overlay is faster than using insertShape to burn the rectangle into an RGB image...

3 years ago | 1

Answered
Code for file processing
Instead of lines = textscan(inputFile, '%s', 'delimiter', '\n'); you might like to use readlines lines = readlines(inputFile)...

3 years ago | 0

Answered
How to obtain a function through 3d points
Like John and Matt have been saying, you need to parameterize your curve, like have x, y, and z all be a function of the same pa...

3 years ago | 1

Answered
Why my standalone app is not working
When you double click the icon and the application just flashes and goes away, or never appears at all, chances are you installe...

3 years ago | 1

Answered
Why is it detecting 2 centroids in 1 object?
I think you're mistaken, or that you attached the wrong data. Your attached data has only one blob in it. See this well commen...

3 years ago | 0

Answered
Valid Coin Mask True Pixels Error Outside or Beyond the Actual Mask Error
@Ahsan I threw out most of the unnecessary code and simplified it greatly. Here is what I got: clc; % Clear the command win...

3 years ago | 0

Answered
Read in a general binary file (for example, but not exclusively a jpeg file), make a modification and write a new file out verbatim--no altered bytes.
See the FAQ for how to read in a series of files. https://matlab.fandom.com/wiki/FAQ#How_can_I_process_a_sequence_of_files? Af...

3 years ago | 0

Answered
Use files from multiple folders
Since this is one of the most common FAQs, see the FAQ for code snippets: https://matlab.fandom.com/wiki/FAQ#How_can_I_process_...

3 years ago | 1

| accepted

Poll


If you were EXTREMELY wealthy, would you still work?

3 years ago | 15668 votes | 11 comments

Answered
Rotate bounding boxes w.r.t the object orientation to get the length and width of objects in an image
You don't need to rotate the bounding boxes. regionprops will find the red box. Rotating that square red box will not give y...

3 years ago | 0

Answered
Edge and corner detection using Hough Transform
The whole approach is wrong. You should just do shape detection. Just threshold find centroid find boundary coordinates fin...

3 years ago | 2

Answered
Problem with saving cropped DNG image to then run rgb -> xyz conversion
Your I2 is already the RGb image. You don't need raw2rgb.

3 years ago | 1

| accepted

Answered
Thresholding operation on HSV Image
You can use the Color Thresholder app on the Apps tab of the tool ribbon to interactively threshold the color image by moving sl...

3 years ago | 0

Answered
How to remove frame appear as a result of thresholding
Avoid the white frame altogether by using imwrite to save the image, rather than saveas or print or whatever other function you'...

3 years ago | 0

Answered
How to find the true positive and true negative for detected pixels in the image
You can use dice to compare your segmented image to the ground truth segmentation image.

3 years ago | 0

Answered
How to Properly Normalize Noisy Image Frames in Dataset ?
What I'd try is to pick some small rectangle of the image that you think should not be affected by whatever is going on in the i...

3 years ago | 0

| accepted

Answered
Image segmentation for spinal CT images.
See my Image Segmentation Tutorial in my File Exchange: Image Analyst's File Exchange It's a generic, general purpose demo of ...

3 years ago | 0

Answered
Can I name the variables in a table from a cell array or a struct?
Just to add to @Cris LaPierre answer, to process a bunch of files you can adapt code snippets in FAQ: https://matlab.fandom.com...

3 years ago | 0

| accepted

Answered
To choose specific files from the folder
See the FAQ for code snippets you can adapt: https://matlab.fandom.com/wiki/FAQ#How_can_I_process_a_sequence_of_files?

3 years ago | 0

Answered
can someone explain how i would compute this code
Your function qmul does not compute q1q2, or the rotation matrix Rq3, or print anything out to the command window. Fix those th...

3 years ago | 0

Answered
How do I remove the background (specifically the vignette) from this image without removing the particles of sand?
Your best bet is to take a separate, blank shot with no particles in the field of view and then divide your particle images by t...

3 years ago | 2

| accepted

Answered
Ripples in the low levels of a Fourier transform of an Electric Field using fft MATLAB
I'm not an expert in antennas but I have a pretty good feel for this Fourier kind of thing from an optics perspective. How many...

3 years ago | 0

Answered
Bug in grader of MATLAB Onramp
Evidently it wanted you to use the vectorized way of creating the vector : vec = startingValue : incrementValue : finalValue W...

3 years ago | 0

Answered
How can I add new cells with NaNs to a matrix
Try this: rowVector = zeros(1, 154); % Original vector (whatever it is). indexes = 12:12:168; rowVector(indexes) = nan % If ...

3 years ago | 1

Answered
Close Borders of an Object
If you want to fill in any "bays" in the outer perimeter of your blob, then use bwconvhull mask = bwconvhull(mask, 'Objects'); ...

3 years ago | 0

| accepted

Answered
How vectorize this loop
Sounds a lot like a homework assignment, but I'm going to assume it's not and give one possible solution: columns = 8; a = mag...

3 years ago | 1

Answered
Correlation in fluid mechanics?
Yes, you can make a model with the Regression Learner on the Apps tab of the tool ribbon if you have the Statistics and Machine ...

3 years ago | 0

Answered
Manipulation of the listdlg function
Make a professional interface, not some primitive one with things like listdlg. Use App Designer. See MATLAB App Designer

3 years ago | 0

| accepted

Answered
Sort or place several points into the nearst point in an unknown a x b grid, and get each point's (i,j) index in the grid.
You might want to use pdist2 to get an array of distances from every point to every other point. Then take the histogram and lo...

3 years ago | 0

| accepted

Answered
How to store all the results in a cell?
You didn't say what you expect, and the code is so wrong in so many ways that I can't figure out what you want. So I made this ...

3 years ago | 0

| accepted

Load more