Answered

isotropic expansion for a mask with anisotropic voxels

I'm not sure how many voxels per mm you have. Is 0.9 mm the voxel width? You can use imdilate but be aware that you'll probabl...

isotropic expansion for a mask with anisotropic voxels

I'm not sure how many voxels per mm you have. Is 0.9 mm the voxel width? You can use imdilate but be aware that you'll probabl...

1 month ago | 0

Answered

How to draw isolines between points?

You have to make a continuous field (grid) of values using scatteredInterpolant. See attached demo to make that field. Then us...

How to draw isolines between points?

You have to make a continuous field (grid) of values using scatteredInterpolant. See attached demo to make that field. Then us...

1 month ago | 0

| accepted

Answered

How to turn a movie into a gif?

See the official Matrhworks support team Answer: https://www.mathworks.com/matlabcentral/answers/94495-how-can-i-create-animated...

How to turn a movie into a gif?

See the official Matrhworks support team Answer: https://www.mathworks.com/matlabcentral/answers/94495-how-can-i-create-animated...

1 month ago | 0

Answered

matlab code for face detection using RGB space color && skin color

RGB is probably the worst color space you can do skin segmentation in. HSI, HSL, LCH are better? Why? Because the skin gamut ...

matlab code for face detection using RGB space color && skin color

RGB is probably the worst color space you can do skin segmentation in. HSI, HSL, LCH are better? Why? Because the skin gamut ...

1 month ago | 0

Answered

Can Matlab create an Excel object and write table to it without saving it to a location?

If you're using Windows I know how to do it. You can use ActiveX programming to open Excel as a server then send commands to Ex...

Can Matlab create an Excel object and write table to it without saving it to a location?

If you're using Windows I know how to do it. You can use ActiveX programming to open Excel as a server then send commands to Ex...

2 months ago | 0

Answered

Matlab R2024b won't start due to missing dll files

Do exactly what it says in the FAQ: https://matlab.fandom.com/wiki/FAQ#During_installation,_the_installer_crashes,_hangs,_gives_...

Matlab R2024b won't start due to missing dll files

Do exactly what it says in the FAQ: https://matlab.fandom.com/wiki/FAQ#During_installation,_the_installer_crashes,_hangs,_gives_...

2 months ago | 0

Answered

How programmatically know if an Update is installed for a particular matlab release?

s = ver for k = 1 : numel(s) fprintf('#%d, Using %s, Version %s, Release %s, Date %s\n', ... k, s(k).Name, s(k).Version, s...

How programmatically know if an Update is installed for a particular matlab release?

s = ver for k = 1 : numel(s) fprintf('#%d, Using %s, Version %s, Release %s, Date %s\n', ... k, s(k).Name, s(k).Version, s...

2 months ago | 0

Answered

Not able to see where the index is going past 5

Names only has 4 strings in it, not 5 so that's why you get the error. The code is not very robust. Here, I've improved it by ...

Not able to see where the index is going past 5

Names only has 4 strings in it, not 5 so that's why you get the error. The code is not very robust. Here, I've improved it by ...

2 months ago | 0

Answered

How to extract pixel intensity of a grayscale image (*.jpg) to a MS Excel table

See my attached demo that writes an image out to a CSV text file that can be read in by Excel.

How to extract pixel intensity of a grayscale image (*.jpg) to a MS Excel table

See my attached demo that writes an image out to a CSV text file that can be read in by Excel.

2 months ago | 0

Answered

Extracting metrics from cellular pattern

Try this: clear all; close all; clc % Load the synthetic detonation pattern image gray_image = imread('CellularPattern_Test.p...

Extracting metrics from cellular pattern

Try this: clear all; close all; clc % Load the synthetic detonation pattern image gray_image = imread('CellularPattern_Test.p...

2 months ago | 0

| accepted

Answered

What is the ratio of area of the flame between the last frame and the first? What is wrong with my approach? I am getting an incorrect answer upon submission.

Try different thresholds to see which one gives you the correct answer. Maybe you were not using the same threshold as the inst...

What is the ratio of area of the flame between the last frame and the first? What is wrong with my approach? I am getting an incorrect answer upon submission.

Try different thresholds to see which one gives you the correct answer. Maybe you were not using the same threshold as the inst...

2 months ago | 1

| accepted

Answered

Extracting metrics from cellular pattern

I think I can get fairly close. Can you give the code where you start with the image and get the binary/segmented image of the ...

Extracting metrics from cellular pattern

I think I can get fairly close. Can you give the code where you start with the image and get the binary/segmented image of the ...

2 months ago | 0

Answered

Is there a meaningful guideline on when to use parentheses vs square brackets vs curly brackets in writing MatLab code?

@Jerome yes there is. If you look at this FAQ entry: What is a cell array I think that it gives a pretty good intuitive idea ...

Is there a meaningful guideline on when to use parentheses vs square brackets vs curly brackets in writing MatLab code?

@Jerome yes there is. If you look at this FAQ entry: What is a cell array I think that it gives a pretty good intuitive idea ...

2 months ago | 1

Answered

This is face morphing. Now I want to save and convert to a gif image format.

That is not face morphing. Morphing is not just a weighted sum of images. The image needs to be warped before adding. So you ...

This is face morphing. Now I want to save and convert to a gif image format.

That is not face morphing. Morphing is not just a weighted sum of images. The image needs to be warped before adding. So you ...

2 months ago | 0

Answered

If f1(x,y)≤z≤f2(x,y), how to draw the range of z?

Do you want just the magnitude of the range, without visualizing the starting and stopping points? If so you can just subtract ...

If f1(x,y)≤z≤f2(x,y), how to draw the range of z?

Do you want just the magnitude of the range, without visualizing the starting and stopping points? If so you can just subtract ...

2 months ago | 0

Answered

Unable to create a exponential graph

I don't know how to do it in Simulink, but this seems to work fine in MATLAB: uTemperatureRange = linspace(10, 200, 1000); yDe...

Unable to create a exponential graph

I don't know how to do it in Simulink, but this seems to work fine in MATLAB: uTemperatureRange = linspace(10, 200, 1000); yDe...

2 months ago | 0

Answered

How to quantify shape similarity between two vectors.

See the Mathworks page on spectral signature matching: https://www.mathworks.com/help/images/target-detection-and-spectral-matc...

How to quantify shape similarity between two vectors.

See the Mathworks page on spectral signature matching: https://www.mathworks.com/help/images/target-detection-and-spectral-matc...

2 months ago | 0

Answered

Exporting Graphs from Matlab App in PNG or JPG

Assuming it's the current/active figure, try exportgraphics(gcf, 'ECRTools.png'); in the command window. help exportgraphics

Exporting Graphs from Matlab App in PNG or JPG

Assuming it's the current/active figure, try exportgraphics(gcf, 'ECRTools.png'); in the command window. help exportgraphics

2 months ago | 0

Answered

Automatically add prefix to loaded sheetname, and output,

You have a new workbook with the new name 'reshapedMaleControl.xlsx'. If your original workbook had multiple sheets, it looks l...

Automatically add prefix to loaded sheetname, and output,

You have a new workbook with the new name 'reshapedMaleControl.xlsx'. If your original workbook had multiple sheets, it looks l...

2 months ago | 0

Answered

How to interpret the wrong image background of data augmentation?

Why are you calling imcomplement? Try not doing that. What is the original background: white or black? Finally, you could j...

How to interpret the wrong image background of data augmentation?

Why are you calling imcomplement? Try not doing that. What is the original background: white or black? Finally, you could j...

2 months ago | 1

Answered

Matlab executable throws error in opc.ua.Client

Try including that file explicitly in your compilation, something like mcc yourapp.m -a " C:\Program Files\MATLAB\MATLAB Runtim...

Matlab executable throws error in opc.ua.Client

Try including that file explicitly in your compilation, something like mcc yourapp.m -a " C:\Program Files\MATLAB\MATLAB Runtim...

2 months ago | 0

Answered

How can I apply a lowpass filter samplewise in my code?

One way is movmean.

How can I apply a lowpass filter samplewise in my code?

One way is movmean.

2 months ago | 0

Answered

What would cause Matlab to lose track of gcf()?

Don't do it like that: gcf().something. Assign something to gcf, like g: g = gcf; % No parentheses after gcf. I think a figur...

What would cause Matlab to lose track of gcf()?

Don't do it like that: gcf().something. Assign something to gcf, like g: g = gcf; % No parentheses after gcf. I think a figur...

2 months ago | 1

Answered

How do I change the output color when using the disp function?

See this File Exchange entry by @Yair Altman https://www.mathworks.com/matlabcentral/fileexchange/24093-cprintf-display-formatt...

How do I change the output color when using the disp function?

See this File Exchange entry by @Yair Altman https://www.mathworks.com/matlabcentral/fileexchange/24093-cprintf-display-formatt...

2 months ago | 0

Answered

Assigning features to the matrix based on windowing

Why not just tack on the condition and device as the last two rows in your loop? feature{4}(k) = data(k, 2); feature{5}(k) = ...

Assigning features to the matrix based on windowing

Why not just tack on the condition and device as the last two rows in your loop? feature{4}(k) = data(k, 2); feature{5}(k) = ...

2 months ago | 0

Answered

How to determine the midline in brain images.

Hard for us to say, don't you think, without seeing an image? What is the midline? Is it just the geometric midline as determi...

How to determine the midline in brain images.

Hard for us to say, don't you think, without seeing an image? What is the midline? Is it just the geometric midline as determi...

2 months ago | 0

Answered

Segment connected regions in binary image

See these links: Watershed transform question from tech support » Watershed transform question from tech support Marker-Contro...

Segment connected regions in binary image

See these links: Watershed transform question from tech support » Watershed transform question from tech support Marker-Contro...

2 months ago | 0

| accepted

Answered

I need help please to obtain histogram clonocolour values of TIF type photos. I can do this separately but i am struggling to do this with multiple images at a time.

Rather than try to figure out how many cells are there, I'd just simply compute the area fraction of purple. It will correlate ...

I need help please to obtain histogram clonocolour values of TIF type photos. I can do this separately but i am struggling to do this with multiple images at a time.

Rather than try to figure out how many cells are there, I'd just simply compute the area fraction of purple. It will correlate ...

2 months ago | 0

Answered

how to divide a color image into multiple binary codes

Not sure what you mean by binary codes. Please explain. How is that different than just a simple tile of the image you extract...

how to divide a color image into multiple binary codes

Not sure what you mean by binary codes. Please explain. How is that different than just a simple tile of the image you extract...

2 months ago | 0

Answered

problemas con reconocer licencia

Do exactly what it says to do in the FAQ: https://matlab.fandom.com/wiki/FAQ#After_installation,_MATLAB_crashes_or_gives_an_erro...

problemas con reconocer licencia

Do exactly what it says to do in the FAQ: https://matlab.fandom.com/wiki/FAQ#After_installation,_MATLAB_crashes_or_gives_an_erro...

2 months ago | 0

| accepted