Answered
Finding files in directory with two different strings in filename
See contains or ismember

3 years ago | 1

Answered
why this code is not working for a slightly diff lungs image?
Well there could be lots of reasons. Either your segmentation for the "bad" image didn't work so well. the trained SVM model...

3 years ago | 1

Answered
How to identify particles in an image that have a comet-like trail from those with perfectly circular halos?
What you need to do is to first segment out the faint halos from the background. Perhaps take the mode of the histogram and ass...

3 years ago | 0

| accepted

Answered
I need MATLAB code that plots the aerodynamic power generated by a wind turbine vs the generator rotation speed for different wind speeds
Looks like you're not plotting out far enough on the x axis to see the parabolic shape. You're only going out on the relatively...

3 years ago | 0

Answered
How to plot an in-ellipse(ellipse inside an object) which also matches the object orientation.
The leader of the Image Processing group at the Mathworks, Steve Eddins, has a blog entry showing how to do it: Visualizing reg...

3 years ago | 0

Answered
How can I determine if the absolute value of a coefficient of x in each element of a matrix was less than 0.01 consider it zero?
Then just write it as a=[ 12X+14, -10(X^2); X 4] with whatever value you have for X. Why can't you? Do you not know what the ...

3 years ago | 0

Answered
pore size distribution of a 1x100 surface
So it seems that you are saying the spheres represent solid matter and the rest is air space or vacuum. And you want to know th...

3 years ago | 0

| accepted

Answered
Hi everyone i want to ask about im crop
Since you already know the pixels per cm is 1030, you can crop out a 1 cm region using indexing if you know the upper left row a...

3 years ago | 0

Answered
Remove regions outside a range and find their centroids
If you want the bounding box width to be between 30 and 200, do this labeledImage = bwlabel(mask); % Measure bounding boxes. ...

3 years ago | 0

Answered
Why doesn't matlab have more plot colors?
Well there are 16 million colors and you can use any of them just by specifying the color as a row in a 2-D matrix of the colors...

3 years ago | 2

Answered
When a global variable is justified
@Valtar by not using app designer because you think it gives you better control, well, I take issue with that. I'd like to see ...

3 years ago | 0

Answered
finding a trend line where x axis semilog and y axis linear and trend line follow the eqn y=a*exp(b*x)
See attached demo for fitting data to exponentials. Adapt as needed.

3 years ago | 0

Answered
How to detect a specific region from a given image?
Try this: Threshold the image. If you want to do it interactively, try my utility function https://www.mathworks.com/matlabcen...

3 years ago | 0

| accepted

Answered
I am embedding pdf into an Image. But after extraction i am getting blank page pdf. How to extract the correct pdf file whatever i have inserted?
See my attached stego/hiding/watermarking demos. Maybe there is something there that you can use or adapt. Good luck.

3 years ago | 0

| accepted

Answered
My GUI app has a file brows option which is working fine in MATLAB but not working after export to desktop exe
Did you compile your program to a standalone executable? And, if so, did you call filebrowser help filebrowser filebrowser is...

3 years ago | 0

Answered
How to save the output of loop function with different names?
Use exportgraphics: help exportgraphics Sample code snippet. Adapt as needed: folder = pwd; % or 'C;\wherever you want' for...

3 years ago | 1

Answered
How to crop 1 inch
You will need to know how many pixels per inch there are. You can do this by drawing a line along some object in your image tha...

3 years ago | 0

| accepted

Answered
Error: Edge function: variable might be used before it is defined
Try this: edgeData = interp1(xValues(i-1:i + 1),yValues(i-1:i + 1),1:columns,"pchip"); edgeData = round(edgeData); for j = xV...

3 years ago | 0

Answered
Plotting a sine wave going wrong
You're plotting so many cycles that the blue curves all overlap and make the plot solid. Either plot fewer points, or use the z...

3 years ago | 0

Answered
How to count number of only those zeros which are lying between 2 one's in a very simplified way in the given matrix?
Here is one way: a = [0, 0, 0, 0, 1, 1, 1, 1, 0, 0 ,0 ,0 ,0 ,0 ,0 ,1 ,1, 1, 1 ,0 ,0 ,0 ,1 ,0 ,0 ,1 ,1 ,1 ,1 ,1 ,0, 0, 1, 1, 1, ...

3 years ago | 0

Answered
Need help to overlay transparent red on gray scale images (or movie) using a binary mask
You can use the function meant for this: labeloverlay Or see these links: How to overlay a foreground image over a background ...

3 years ago | 0

Answered
i get a couple of errors from my code. I am trying to see if there is an interrelation b/w brightness and counts. I have 2 independent varibles which are device and mode.
To see if there is a correlation between two output variables, regardless of how they were created, wouldn't you just use scatte...

3 years ago | 0

Answered
Plotting the 3D Heat Equation in 2D Slices
"How can I visualize these slices? " <== There are several functions that can display a 2-D slice/matrix: imshow, imagesc, or i...

3 years ago | 1

Answered
How to apply DES Sbox 1?
You can't have a subtraction operation on the left wide of an equals sign: S-box1 = ............... The right side of the equa...

3 years ago | 0

Answered
I am getting wrong text file after extraction process.
Unfortunately you forgot to attach glioma.txt and glioma.jpg. And of course you're saving images out as lossy JPG format, which...

3 years ago | 0

Answered
Generating the edge for a higher intensity pixels and not low intensity pixels.
Not sure what you call low intensity. So if the high intensity mask is all pixels above some threshold, then isn't the low inte...

3 years ago | 0

| accepted

Answered
specify the number of clusters in dbscan
Like @VM Sreeram said, you can't do that directlywith dbscan, though you could iterate varying the parameter until only two clus...

3 years ago | 0

Answered
How to express color in terms of wavelength.
If you need a spectral image, then don't collect an RGB image. Collect an image with more wavelengths in the first place. You ...

3 years ago | 0

Answered
Get rid off white border in spectrum
Try cropping off the last row and column p = p(1:end-1, 1:end-1) then call fft2.

3 years ago | 0

Answered
Finding max peaks and full width/half max for both curves in the given plot
Does the curve fitter give you the equation of the curve? You should be able to figure it out. Just take each Gaussian and set...

3 years ago | 0

Load more