Answered

Cant change the background using image segmentaton

Why do you think that code will identify background, whatever that is, in an image of a bunch of leaves? What is the background...

Cant change the background using image segmentaton

Why do you think that code will identify background, whatever that is, in an image of a bunch of leaves? What is the background...

17 days ago | 0

Answered

How to join an image to multiple images with a loop?

If the number of columns are the same: tallImage = [topImage; bottomImage]; If the number of rows are the same wideImage = [l...

How to join an image to multiple images with a loop?

If the number of columns are the same: tallImage = [topImage; bottomImage]; If the number of rows are the same wideImage = [l...

17 days ago | 0

| accepted

Answered

How to replace image pixels

Try this if your data is stored row, column, new gray level: data = csvread(filename); % Assumes columns of row, column, new g...

How to replace image pixels

Try this if your data is stored row, column, new gray level: data = csvread(filename); % Assumes columns of row, column, new g...

20 days ago | 0

Answered

Point Spread Function with Gaussian (radial direction) and exponential (axial direction)

I don't know. You can use fspecial() to get a Gaussian image/pattern/matrix. Of course the values of that Gaussian are determi...

Point Spread Function with Gaussian (radial direction) and exponential (axial direction)

I don't know. You can use fspecial() to get a Gaussian image/pattern/matrix. Of course the values of that Gaussian are determi...

20 days ago | 1

Answered

problem with using Gabor filter to segment floor

It looks like a frame from a video. Assuming the humans are moving, it's probably best to either get a snapshot when no one is ...

problem with using Gabor filter to segment floor

It looks like a frame from a video. Assuming the humans are moving, it's probably best to either get a snapshot when no one is ...

20 days ago | 2

Answered

How can I conduct statistical analysis of runs that collate into one variable?

It's covered by the FAQ: https://matlab.fandom.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F For example, it might be c...

How can I conduct statistical analysis of runs that collate into one variable?

It's covered by the FAQ: https://matlab.fandom.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F For example, it might be c...

21 days ago | 0

Answered

sampling of pixel point and find out the distance between them

I suggest youi first correct your image capture conditions so that your book is pressed flat. Once you have done that the lines...

sampling of pixel point and find out the distance between them

I suggest youi first correct your image capture conditions so that your book is pressed flat. Once you have done that the lines...

21 days ago | 0

| accepted

Answered

problem in matlab code

W is probably a vector and so the entire right hand side is a vector. You can't stuff, say, 100 elements into throughputCR(i) w...

problem in matlab code

W is probably a vector and so the entire right hand side is a vector. You can't stuff, say, 100 elements into throughputCR(i) w...

21 days ago | 1

Answered

convert line to pixel coordinate

What if you just take the average of the initial, known points? x = sort(rand(9, 1)); y = sort(rand(9, 1)); plot(x, y, '.-', ...

convert line to pixel coordinate

What if you just take the average of the initial, known points? x = sort(rand(9, 1)); y = sort(rand(9, 1)); plot(x, y, '.-', ...

21 days ago | 0

| accepted

Answered

How to use matlab function to fill or label the previous or next column cells with respect to certain column of of a matrix with a number (3)

Try imdilate() -- it's a local max filter. se = [0,0,0;1,1,1;1,1,1] outputMatrix = imdilate(inputMatrix, se);

How to use matlab function to fill or label the previous or next column cells with respect to certain column of of a matrix with a number (3)

Try imdilate() -- it's a local max filter. se = [0,0,0;1,1,1;1,1,1] outputMatrix = imdilate(inputMatrix, se);

21 days ago | 1

| accepted

Answered

How to create a random distribution of 2 words in 30 places?

Try this: sentence = []; for k = 1 : 30 sentence = sprintf('%sword%d ', sentence, k); end sentence replacementWords = {'m...

How to create a random distribution of 2 words in 30 places?

Try this: sentence = []; for k = 1 : 30 sentence = sprintf('%sword%d ', sentence, k); end sentence replacementWords = {'m...

21 days ago | 0

Answered

How to find out the points collection which has the same minimum distance to the boundary of a closed image

Try imdilate() to expand it out 5 pixels. xy = [10,30; 20,40; 50,30; 50,20; 40,20; 30,10; 20,10; 10,20] x = xy(:, 1); y = xy(...

How to find out the points collection which has the same minimum distance to the boundary of a closed image

Try imdilate() to expand it out 5 pixels. xy = [10,30; 20,40; 50,30; 50,20; 40,20; 30,10; 20,10; 10,20] x = xy(:, 1); y = xy(...

21 days ago | 1

| accepted

Answered

How to make a code using flip & slide method and without using conv function ?

It's simply convolution: x = [1 2 3]; h = [4 5 6]; output = conv(x, h) output = 4 13 28 27 18

How to make a code using flip & slide method and without using conv function ?

It's simply convolution: x = [1 2 3]; h = [4 5 6]; output = conv(x, h) output = 4 13 28 27 18

21 days ago | 1

| accepted

Answered

Line or segment of line that touch all pixels in a structure

Maybe try bwdistgeodesic().

Line or segment of line that touch all pixels in a structure

Maybe try bwdistgeodesic().

21 days ago | 0

Answered

Noise removal in image segmentation

Well knotholes are certainly objects so it makes sense that it found them. If you just want things that stick up above the surf...

Noise removal in image segmentation

Well knotholes are certainly objects so it makes sense that it found them. If you just want things that stick up above the surf...

21 days ago | 0

Answered

Is Walter Roberson a real person, or is he some kind of Matlab AI robot?

Yes, Walter is a real person. In fact at the Annual Meetings in June of this year, he received a highly prestigious MATLABBY Aw...

Is Walter Roberson a real person, or is he some kind of Matlab AI robot?

Yes, Walter is a real person. In fact at the Annual Meetings in June of this year, he received a highly prestigious MATLABBY Aw...

21 days ago | 9

Answered

How do I draw the scatterplot of an RGB image?

You need to use colorcloud(). It does a 3-D scatterplot of the RGB gamut.

How do I draw the scatterplot of an RGB image?

You need to use colorcloud(). It does a 3-D scatterplot of the RGB gamut.

22 days ago | 0

Answered

T-test on two classifiers

Do you have ground truth for your data? If so, why not simply get the accuracy percentage for each classifier?

T-test on two classifiers

Do you have ground truth for your data? If so, why not simply get the accuracy percentage for each classifier?

23 days ago | 0

Answered

I've created my own Otsu thresholding function, but is isn't working properly

See how the Mathworks does it: >> edit otsuthresh.m

I've created my own Otsu thresholding function, but is isn't working properly

See how the Mathworks does it: >> edit otsuthresh.m

23 days ago | 0

Answered

How to create a RGB image with reflectances ?

See File Exchange: https://www.mathworks.com/matlabcentral/fileexchange/51560-get_xyz

How to create a RGB image with reflectances ?

See File Exchange: https://www.mathworks.com/matlabcentral/fileexchange/51560-get_xyz

23 days ago | 1

Answered

Checking if word/words are present in a sentence in a table cell.

Try contains(). if contains(ca{2, 1}, 'M3 TRIPPED') % It contains that phrase in row 2, column 1 of cell array called ca ...

Checking if word/words are present in a sentence in a table cell.

Try contains(). if contains(ca{2, 1}, 'M3 TRIPPED') % It contains that phrase in row 2, column 1 of cell array called ca ...

25 days ago | 0

| accepted

Answered

Get pixel of data coordinate

You can use getpixel() to get the pixel value, or use indexing, like pixelValue = yourImage(y, x, :). To put an arrow into the ...

Get pixel of data coordinate

You can use getpixel() to get the pixel value, or use indexing, like pixelValue = yourImage(y, x, :). To put an arrow into the ...

26 days ago | 0

Answered

How can I remove the toolbar from the axes, but keep it at the top of the window?

See the official toolbar answer here in this Mathworks Support Answer In short: addToolbarExplorationButtons(gcf) % Adds butto...

How can I remove the toolbar from the axes, but keep it at the top of the window?

See the official toolbar answer here in this Mathworks Support Answer In short: addToolbarExplorationButtons(gcf) % Adds butto...

30 days ago | 2

Answered

[Solved] Fitting exponential decay function

You can use fitnlm(). See attached demo. I can't use your actual data because you forgot to attach it.

[Solved] Fitting exponential decay function

You can use fitnlm(). See attached demo. I can't use your actual data because you forgot to attach it.

1 month ago | 1

Answered

How to generate random projection matrices?

Not sure what you mean by projection, but the radon transform does projections. That's its claim to fame. It basically projects...

How to generate random projection matrices?

Not sure what you mean by projection, but the radon transform does projections. That's its claim to fame. It basically projects...

1 month ago | 0

Answered

How to set boundaries between 3 curves and shade the region

Try fill() or patch(). If you can't figure out how to get the region (x,y) boundaries, just ask.

How to set boundaries between 3 curves and shade the region

Try fill() or patch(). If you can't figure out how to get the region (x,y) boundaries, just ask.

1 month ago | 1

Answered

How to Automatically remove noise using Image historgram based?

I don't believe so, at least not via a global operation, since the noise is likely very close to the local means. So you can't ...

How to Automatically remove noise using Image historgram based?

I don't believe so, at least not via a global operation, since the noise is likely very close to the local means. So you can't ...

1 month ago | 1

| accepted

Answered

Z must be matrix, how to determine size of reshape

If they're in a grid in an N-by-3 array, extract them first x = xyz(:, 1); y = xyz(:, 2); z = xyz(:, 3); Then try surf(x, y...

Z must be matrix, how to determine size of reshape

If they're in a grid in an N-by-3 array, extract them first x = xyz(:, 1); y = xyz(:, 2); z = xyz(:, 3); Then try surf(x, y...

1 month ago | 0

Answered

how to stop changing of a variable?

Instead of this if s<200 logic=1; else logic=0; do this logic = s < 200; % Just one line, not a whole if/else bloc...

how to stop changing of a variable?

Instead of this if s<200 logic=1; else logic=0; do this logic = s < 200; % Just one line, not a whole if/else bloc...

1 month ago | 0