Answered
How to calculate the distance between blood vessel edges?
You need to invert your binary image. The vessel should be white: binaryImage = ~storedStructure.BWfinal; binaryImage = bware...

3 years ago | 0

Answered
How to extract data from drawn images?
When you originally created the picture, just save the data at that time to a .MAT file using save. You can recall it later fr...

3 years ago | 0

Answered
Select dominated columns in a large matrix
How about (untested) [rows, columns] = size(F) itsDominated = false(1, columns); % Keep track of which columns are dominated. ...

3 years ago | 0

| accepted

Answered
When calling a class (say, to convert types), are we calling a function?
I like to think of it like this. In standard object oriented programming (OOP) you have a "class" which is an object that is a ...

3 years ago | 3

Answered
How can I apply agglomerative hierarhical clustering based on the distance between regions?
Not sure why I didn't see your question years ago (since I already have a demo), but I agree that dbscan seems to be the algorit...

3 years ago | 0

Answered
Random maze solving algorithm with matrix
For a variety of maze-solving algorithms, including one by me and another by Steve Eddins (the leader of image processing team),...

3 years ago | 0

Answered
How can i get rid of elements in image?
Try this for one image. % Demo by Image Analyst clc; % Clear the command window. close all; % Close all figures (except t...

3 years ago | 1

| accepted

Answered
what could be the reason to get negative predicted output for new dataset?
Because that's what the model thinks the value should be. If you don't think it's right then make sure your test data is in the...

3 years ago | 0

Answered
how I edit layout figure according my picture??
What did you do to make the top image? Did you use subplot(1, 10, k) ? Maybe try subplot(2, 5, k)

3 years ago | 0

Answered
How to get pixels per millimeter from image of a scale
Whoever told you to use the Fourier transform to spatially calibrate your image was either (1) teasing you, (2) pulling a prank ...

3 years ago | 0

Answered
how to overlay cropped image on uncropped original image
See my attached demos about pasting an image onto another image. Adapt as needed. You might also like How to overlay a foregr...

3 years ago | 0

Answered
Source code for Heart Disease Prediction
In addition to PubMed you can try http://www.visionbib.com/bibliography/contentsmedical.html#Medical%20Applications,%20CAT,%20M...

3 years ago | 0

Answered
Estimate different trend lines and its slopes from a set of points
Perhaps findchangepts help findchangepts

3 years ago | 0

Answered
How to make the color gradient gradual. In the plot
The number of colors depends on the number of unique values in your data as well as the number of unique colors in your colormap...

3 years ago | 0

Answered
Image motion frequency estimation from scanned image
It looks like you can determine the waviness wavelength by examining the dark blobs at the last line of the image. Otherwise, I...

3 years ago | 0

| accepted

Answered
Day of Week data plot
Look into splitapply, grpstats. and groupsummary They will do functions, like mean, based on what group the data is in.

3 years ago | 0

Answered
How to find out area under the curved shape of the attached figure?
Try the attached code to automatically find the lower dark shape. It produces.

3 years ago | 0

| accepted

Answered
Writing tiff file with multi channel and slices
What is z and t? If you want the loop to only go from c=1 to c=2, instead of this: for c = 1:dims(3) have this: for c =...

3 years ago | 1

Answered
The function is debugging too long...
Steve said youi have an infiite loop. You should never have one if you code it up properly. ALL while loops need a failsafe to ...

3 years ago | 1

Answered
I am looking for advice on the best way to learn matlab. I am a second year PhD student trying to familiarize myself with problems or projects. Any advice?
Try this link: Best way(s) to master MATLAB? - MATLAB Answers - MATLAB Central To learn fundamental concepts, invest 2 hours...

3 years ago | 0

Answered
How I Can Change language to English?
To change the language and server of what you're using on the Mathworks web site, go to www.mathworks.com and scroll way down to...

3 years ago | 3

Answered
Could anyone help me solve the problem below that i am facing
You have a function (method) of a class and when you execute that function, for some reason, the output variable never gets assi...

3 years ago | 0

| accepted

Answered
Problem with converted TIFF image
Try img_uint16 = uint16(double(img) / double(max(img(:))) * 65535); or img_uint16 = uint16(mat2gray(img) * intmax('uint16'));...

3 years ago | 0

| accepted

Answered
Saving a Script from another script
What you should do is to put all of your parameters that you want to vary in a text file or a workbook. Then read it in with so...

3 years ago | 0

Answered
AM Demodulation code error
time is a built in function so your use of it is not recommended. What is filt_received? Specifically what is its size (rows a...

3 years ago | 0

Answered
How do i detect background from any image given to me?
If you have the Computer Vision Toolbox, you can use the foreground detector: https://www.mathworks.com/help/vision/ref/vision....

3 years ago | 0

Poll


My favorite sport to watch is

3 years ago | 3712 votes | 15 comments

Answered
i have ascii data converted into columns and rows seperatby str2num command now i want to add all rows in orderly in one cell by using for loop can you give me ans
Try this: fileName = "radio.txt"; data = readmatrix(fileName, 'NumHeaderLines', 5) % Turn nans into 0's. data(isnan(data)) =...

3 years ago | 0

Answered
how can I view each individual superpixel?
The superpixels algorithm gives you the labeled image, where each superpixel is assigned an ID number. To view them all you cou...

3 years ago | 0

Answered
Creating a safety distance from an obstacle in occupancyMap
If you have the Image Processing Toolbox, you can use imdilate - it does what you ask for. If you don't want blobs to join/conn...

3 years ago | 0

Load more