Answered

Randomly deforming my curve

Try this: % Initialization steps. clc; % Clear the command window. close all; % Close all figures (except those of imtool...

Randomly deforming my curve

Try this: % Initialization steps. clc; % Clear the command window. close all; % Close all figures (except those of imtool...

8 days ago | 1

Answered

How to Segment a image object based on edge points ?

You should be able to just threshold and call bwlabel. [labeledImage, numRegions] = bwlabel(grayImage > 0, 4); I'm not sure ...

How to Segment a image object based on edge points ?

You should be able to just threshold and call bwlabel. [labeledImage, numRegions] = bwlabel(grayImage > 0, 4); I'm not sure ...

8 days ago | 0

Answered

Extracting external Boundary from Binary Image generated from noisy RGB

If you just want the top pixel of the quarter image, you can simply scan the image column by column looking for the first pixel ...

Extracting external Boundary from Binary Image generated from noisy RGB

If you just want the top pixel of the quarter image, you can simply scan the image column by column looking for the first pixel ...

8 days ago | 1

Answered

how to set x-axes in a histogram of gray scale image and how to see if the image is saturated (12 bit)

If the maxcount is 2123959, then that just means that the highest bin has a y value of 2123959. That bin could be anywhere alon...

how to set x-axes in a histogram of gray scale image and how to see if the image is saturated (12 bit)

If the maxcount is 2123959, then that just means that the highest bin has a y value of 2123959. That bin could be anywhere alon...

8 days ago | 0

Answered

How to Segment a object's based on color pixel value ? and how to labelling it ?

You can use the Color Thresholder on the Apps tab of the tool ribbon. Tell it to export the code. Then you can pass the mask i...

How to Segment a object's based on color pixel value ? and how to labelling it ?

You can use the Color Thresholder on the Apps tab of the tool ribbon. Tell it to export the code. Then you can pass the mask i...

8 days ago | 0

Answered

Animate a rectangle, for loop used

Use the rectangle() function. Get it's handle so you can delete the old one when you want to place a new one.

Animate a rectangle, for loop used

Use the rectangle() function. Get it's handle so you can delete the old one when you want to place a new one.

9 days ago | 0

| accepted

Answered

How to plot this graph on Matlab?

You can use rectangle() to plot the circle and oval. You can use text() to place text labels on the plot.

How to plot this graph on Matlab?

You can use rectangle() to plot the circle and oval. You can use text() to place text labels on the plot.

9 days ago | 2

| accepted

Answered

Nuclear norm coding issue

In plot([1 : 50:(m*n)], SuccessRate(2:9)) SuccessRate(2:9) has 8 elements. Does x have 8 elements? What does this show leng...

Nuclear norm coding issue

In plot([1 : 50:(m*n)], SuccessRate(2:9)) SuccessRate(2:9) has 8 elements. Does x have 8 elements? What does this show leng...

9 days ago | 0

Answered

optimization of scobel image processing - better approach needed

Here is what I have so far: % Demo by Image Analyst clc; % Clear the command window. close all; % Close all figures (exce...

optimization of scobel image processing - better approach needed

Here is what I have so far: % Demo by Image Analyst clc; % Clear the command window. close all; % Close all figures (exce...

9 days ago | 0

| accepted

Answered

optimization of scobel image processing - better approach needed

What happens if you try stdfilt(), or look at the vertical profile by summing the image horizontally?

optimization of scobel image processing - better approach needed

What happens if you try stdfilt(), or look at the vertical profile by summing the image horizontally?

10 days ago | 0

Answered

Trying to get the angles at each time step. The angles should be in radians 0 to pi. From my loop, the angles are qs, qe, qw. Each time we get a new angle by adding the q_dot. I am getting angle 10^4 , which does not make sense.

If you want equal spaced angles, and a certain number of them, do this: allAngles = linspace(startingAngle, endingAngle, number...

Trying to get the angles at each time step. The angles should be in radians 0 to pi. From my loop, the angles are qs, qe, qw. Each time we get a new angle by adding the q_dot. I am getting angle 10^4 , which does not make sense.

If you want equal spaced angles, and a certain number of them, do this: allAngles = linspace(startingAngle, endingAngle, number...

10 days ago | 0

Answered

Find quasi-periodic peak locations from noisy photon count data

I'm attaching a demo where you can specify how many Gaussians are in your signal and it will find them. If you don't know how m...

Find quasi-periodic peak locations from noisy photon count data

I'm attaching a demo where you can specify how many Gaussians are in your signal and it will find them. If you don't know how m...

10 days ago | 0

Answered

Image processing - calculate center mass and its initial moment

Call regionprops(binaryImage, 'Centroid') binaryImage = bwareafilt(binaryImage, 1); % Take largest only. props = regionprops(b...

Image processing - calculate center mass and its initial moment

Call regionprops(binaryImage, 'Centroid') binaryImage = bwareafilt(binaryImage, 1); % Take largest only. props = regionprops(b...

10 days ago | 0

| accepted

Answered

how to repair the error of read multiple images in one folder and proceed directly to the background removal stage and generate fractal dimension values from those images

What are you trying to do with loading mri, and with montage? montage wants a variable full of images or image names. What are...

how to repair the error of read multiple images in one folder and proceed directly to the background removal stage and generate fractal dimension values from those images

What are you trying to do with loading mri, and with montage? montage wants a variable full of images or image names. What are...

10 days ago | 0

| accepted

Answered

How to hide or delete the legend that is not needed

Try getting rid of the for loops, which essentially do nothing: plot(lv,reag(1,:),'color',[0 0.4470 0.7410],'LineWidth',LineWid...

How to hide or delete the legend that is not needed

Try getting rid of the for loops, which essentially do nothing: plot(lv,reag(1,:),'color',[0 0.4470 0.7410],'LineWidth',LineWid...

10 days ago | 0

Answered

How to calculate peak signal-to-noise ratio (PSNR) for RGB color image in Matlab?

The help does not specify that it must be a 2-D gray scale image so I assume it would work for an RGB image, which makes sense s...

How to calculate peak signal-to-noise ratio (PSNR) for RGB color image in Matlab?

The help does not specify that it must be a 2-D gray scale image so I assume it would work for an RGB image, which makes sense s...

10 days ago | 0

| accepted

Answered

Why do I get the error "Unrecognized function or variable" with this

What is time? Your function does not know because you did not pass it in. ALso, you did not pass in speed1 so it won't know th...

Why do I get the error "Unrecognized function or variable" with this

What is time? Your function does not know because you did not pass it in. ALso, you did not pass in speed1 so it won't know th...

11 days ago | 0

Answered

how matlab reads Column vectors

Let's assume your 3 column vector is something like this: vector = [1, 2, 3]; % A 3-column "row vector.". Though it is a 3 col...

how matlab reads Column vectors

Let's assume your 3 column vector is something like this: vector = [1, 2, 3]; % A 3-column "row vector.". Though it is a 3 col...

11 days ago | 0

| accepted

Answered

Two colormaps for same worldmap axis

Try this demo and adapt as needed: % Make ramps so we have an image to work with. rows = 300; columns = 200; values = linspa...

Two colormaps for same worldmap axis

Try this demo and adapt as needed: % Make ramps so we have an image to work with. rows = 300; columns = 200; values = linspa...

11 days ago | 0

Answered

average over a certain range of index ?

Megha, here is a non-for loop way of doing it using splitapply(): A = [1 7 12 20 23 31]; B = [6 11 19 22 30 35]; C = rand(1,3...

average over a certain range of index ?

Megha, here is a non-for loop way of doing it using splitapply(): A = [1 7 12 20 23 31]; B = [6 11 19 22 30 35]; C = rand(1,3...

11 days ago | 0

Answered

Thresholding based on smaller domains

imbinarize() has an 'adaptive' option try that. Otherwise try to use adapthisteq() to flatten the image so that you can use a g...

Thresholding based on smaller domains

imbinarize() has an 'adaptive' option try that. Otherwise try to use adapthisteq() to flatten the image so that you can use a g...

11 days ago | 0

Answered

How to quantify all the colored blobs in a video?

See my attached demo where I track a colored Sharpie marker.

How to quantify all the colored blobs in a video?

See my attached demo where I track a colored Sharpie marker.

11 days ago | 0

Answered

Sampling 100 four-child families to estimate the probability that a four-child family has three girls

Scrap almost all that and do this: S = 1; % 0=boy 1=girl R = 1000000; % a million families with 4 children N = 4; % flip 4 ...

Sampling 100 four-child families to estimate the probability that a four-child family has three girls

Scrap almost all that and do this: S = 1; % 0=boy 1=girl R = 1000000; % a million families with 4 children N = 4; % flip 4 ...

11 days ago | 0

| accepted

Answered

How MTF blurs an image?

Use fspecial() to create Gaussian PSF's, which is just the spatial domain representation of the MTF. Then pass the PSF into imf...

How MTF blurs an image?

Use fspecial() to create Gaussian PSF's, which is just the spatial domain representation of the MTF. Then pass the PSF into imf...

12 days ago | 0

| accepted

Answered

Replace Only Certain Values within a Matrix Based on Indices from Another

See if this gives you what you want: y = y .* ind; If not, then attach your x and y in a .mat file and tell us what you expect...

Replace Only Certain Values within a Matrix Based on Indices from Another

See if this gives you what you want: y = y .* ind; If not, then attach your x and y in a .mat file and tell us what you expect...

12 days ago | 1

Answered

How to calculate the automatically some distance in the image based on the colour ?

Kristen, try this: % Demo by Image Analyst, February, 2021. clc; % Clear the command window. close all; % Close all figur...

How to calculate the automatically some distance in the image based on the colour ?

Kristen, try this: % Demo by Image Analyst, February, 2021. clc; % Clear the command window. close all; % Close all figur...

12 days ago | 2

Answered

Using inbuilt RANSAC function for circle fit in 2D data

@Said, thanks. That's outstanding. I'm attaching a full demo (using noisy but "good" data that did not need RANSAC) in case an...

Using inbuilt RANSAC function for circle fit in 2D data

@Said, thanks. That's outstanding. I'm attaching a full demo (using noisy but "good" data that did not need RANSAC) in case an...

13 days ago | 1

Answered

How to cut off part of the figure out after you filtered it

You could just display from 100 on: xlim([100, max(output1)]); or you could remove everything less than x=100 startingIndex =...

How to cut off part of the figure out after you filtered it

You could just display from 100 on: xlim([100, max(output1)]); or you could remove everything less than x=100 startingIndex =...

13 days ago | 0

Answered

Indexing out of regionprops

What would you like? You could also ask regionprops to retrieve the blob shape for every index if you want. If you want you ca...

Indexing out of regionprops

What would you like? You could also ask regionprops to retrieve the blob shape for every index if you want. If you want you ca...

13 days ago | 0

| accepted

Answered

How to search functions for mat use

I'd type control-shift-F then tell it to search all m-files in some folder and subfolder for whatever you think it might look li...

How to search functions for mat use

I'd type control-shift-F then tell it to search all m-files in some folder and subfolder for whatever you think it might look li...

13 days ago | 0