Answered

How to calculate the centroid / center of a patch?

The data X,Y must have been previously calculated from some raw data, say a thresholded figure, it is from that data you can eas...

How to calculate the centroid / center of a patch?

The data X,Y must have been previously calculated from some raw data, say a thresholded figure, it is from that data you can eas...

7 månader ago | 2

Answered

Error of the following code : "Array indices must be positive integers or logical values."

Not very clear, what are length_ijk and index_ijk? in the files you have added, miu has 262144 values, ind has 77 and freq has 6...

Error of the following code : "Array indices must be positive integers or logical values."

Not very clear, what are length_ijk and index_ijk? in the files you have added, miu has 262144 values, ind has 77 and freq has 6...

9 månader ago | 0

Answered

Not able to write the image by reading xcel files generated , getting error of data type as shown in picture attached. Anybody please help.

This is not very clear, it would be better to copy the code instead of figures and provide a sample file so that the case can be...

Not able to write the image by reading xcel files generated , getting error of data type as shown in picture attached. Anybody please help.

This is not very clear, it would be better to copy the code instead of figures and provide a sample file so that the case can be...

9 månader ago | 0

Answered

How to add colormap on an image?

I guess that this is a 2 step question, you want to add a colormap and then export as a png or jpeg, try the following, read an ...

How to add colormap on an image?

I guess that this is a 2 step question, you want to add a colormap and then export as a png or jpeg, try the following, read an ...

10 månader ago | 0

Answered

What is a good performance metric for pixels classification tasks

One good metric is the Jaccard Index, or the Intersection over Union. What this metric does is to divide true positives over th...

What is a good performance metric for pixels classification tasks

One good metric is the Jaccard Index, or the Intersection over Union. What this metric does is to divide true positives over th...

10 månader ago | 0

| accepted

Answered

Does anyone know how to create graphics of the same size?

Hello You can use the command "print" https://uk.mathworks.com/help/matlab/ref/print.html?searchHighlight=print&s_tid=srcht...

Does anyone know how to create graphics of the same size?

Hello You can use the command "print" https://uk.mathworks.com/help/matlab/ref/print.html?searchHighlight=print&s_tid=srcht...

10 månader ago | 0

Answered

double data type in image processing

Another easy way around this is to divide the doubles by 255 X=imread('cameraman.tif'); %read the cameraman image X=doubl...

double data type in image processing

Another easy way around this is to divide the doubles by 255 X=imread('cameraman.tif'); %read the cameraman image X=doubl...

11 månader ago | 1

Answered

Random shuffle of vector elements

This can be easily done by addressing the vector correctly. First you need a random order to shuffle your elements. You can do t...

Random shuffle of vector elements

This can be easily done by addressing the vector correctly. First you need a random order to shuffle your elements. You can do t...

12 månader ago | 1

| accepted

Answered

how can i use a Gaussian gradient routine for remove the out of focused section in image processing

You could refine your processing using bwlabel to assign unique labels to the regions you have already detected. Then use region...

how can i use a Gaussian gradient routine for remove the out of focused section in image processing

You could refine your processing using bwlabel to assign unique labels to the regions you have already detected. Then use region...

ungefär ett år ago | 0

| accepted

Answered

A ’BGR’ image.

Hello: First, changing channels is very simple you just need to change the third dimension of the image, e.g. image1=imread('p...

A ’BGR’ image.

Hello: First, changing channels is very simple you just need to change the third dimension of the image, e.g. image1=imread('p...

ungefär ett år ago | 1

| accepted

Answered

I cannot save matlab editor, the .m file.

I guess that you must have used some special characters like accents, have you copy-pasted something into the editor?

I cannot save matlab editor, the .m file.

I guess that you must have used some special characters like accents, have you copy-pasted something into the editor?

ungefär ett år ago | 0

Answered

Detecting a stain in a texture

This would not be that difficult, marble = imread('https://upload.wikimedia.org/wikipedia/commons/f/f3/SierraXenolith.JPG'); ...

Detecting a stain in a texture

This would not be that difficult, marble = imread('https://upload.wikimedia.org/wikipedia/commons/f/f3/SierraXenolith.JPG'); ...

ungefär ett år ago | 0

Answered

I need to find the phase of the images.

Hello The image that you show could be that of a phase, but it is hard to judge from what you are showing. In any case, here is...

I need to find the phase of the images.

Hello The image that you show could be that of a phase, but it is hard to judge from what you are showing. In any case, here is...

ungefär ett år ago | 3

Answered

unshow unnecessary intervalls in a histogramm

Hello: What you need to do is rather simple if you capture the values of your histogram, instead of using hist to display dir...

unshow unnecessary intervalls in a histogramm

Hello: What you need to do is rather simple if you capture the values of your histogram, instead of using hist to display dir...

ungefär ett år ago | 0

Answered

Mean computaion in matlab

If your data is in a matrix of dimensions [samples x 3], e.g. data=[lon1 lat1 value1; lon2 lat2 value2; lon3 lat3 value3; ...

Mean computaion in matlab

If your data is in a matrix of dimensions [samples x 3], e.g. data=[lon1 lat1 value1; lon2 lat2 value2; lon3 lat3 value3; ...

ungefär ett år ago | 0

| accepted

Answered

convolution of 2 signals

You are confusing functions. conv is used to obtain the convolution, subplot is used to divide a figure and then plot inside eac...

convolution of 2 signals

You are confusing functions. conv is used to obtain the convolution, subplot is used to divide a figure and then plot inside eac...

ungefär ett år ago | 0

Answered

Compute convolution y[n]=x[n]*h[n]: x[n]={2,0,1,-1,3}; h[n]={1,2,0,1}

What exactly is your question?

Compute convolution y[n]=x[n]*h[n]: x[n]={2,0,1,-1,3}; h[n]={1,2,0,1}

What exactly is your question?

ungefär ett år ago | 0

Answered

How can I extract the GLCM features from each nucleus of mircroscope blood smear image?

One way to do this would be to crop each region, once you have found each object, you can use regionprops to determine the extre...

How can I extract the GLCM features from each nucleus of mircroscope blood smear image?

One way to do this would be to crop each region, once you have found each object, you can use regionprops to determine the extre...

mer än ett år ago | 0

Answered

How to Loop to plot histogram and line plot?

The following is not clear and most probably your error: for i=4:8;k=1:2 subplot(1,2,k) plot(Temp(:,3),Temp(:...

How to Loop to plot histogram and line plot?

The following is not clear and most probably your error: for i=4:8;k=1:2 subplot(1,2,k) plot(Temp(:,3),Temp(:...

mer än ett år ago | 0

Answered

fprintf or fwrite non ASCII characters

Have you tried using TeX formatting? I.e. \alpha \sigma \mu https://uk.mathworks.com/help/matlab/creating_plots/greek-letters...

fprintf or fwrite non ASCII characters

Have you tried using TeX formatting? I.e. \alpha \sigma \mu https://uk.mathworks.com/help/matlab/creating_plots/greek-letters...

mer än ett år ago | 0

Answered

Labelling of x axis

There are 2 ways to solve this: First is to plot in the actual hours instead of the points of the matrix that is holding th...

Labelling of x axis

There are 2 ways to solve this: First is to plot in the actual hours instead of the points of the matrix that is holding th...

mer än ett år ago | 0

| accepted

Answered

how to change the plot background?

Most probably the first figure you are showing is and RGB (type "whos" and look for the dimensions it should be rows x columns x...

how to change the plot background?

Most probably the first figure you are showing is and RGB (type "whos" and look for the dimensions it should be rows x columns x...

mer än ett år ago | 0

Answered

Plotting Several 2D Spatial Cross-section Data in 3D (GPR Data)

In terms of functions you can use mesh, surf, isosurface, isocaps and others. But what is more important is what you are trying ...

Plotting Several 2D Spatial Cross-section Data in 3D (GPR Data)

In terms of functions you can use mesh, surf, isosurface, isocaps and others. But what is more important is what you are trying ...

mer än ett år ago | 0

Answered

How to make a bar graph using user input values

Several errors, First, clear your figure every time you play otherwise they will overlap (use clf). Second, you are always...

How to make a bar graph using user input values

Several errors, First, clear your figure every time you play otherwise they will overlap (use clf). Second, you are always...

mer än ett år ago | 0

| accepted

Answered

how to change the type of binarize threshold

I agree with the previous comments, the first T is not a table. So two comments 1) do not use T for a value first and then fo...

how to change the type of binarize threshold

I agree with the previous comments, the first T is not a table. So two comments 1) do not use T for a value first and then fo...

mer än ett år ago | 1

| accepted

Answered

¿Porque no corre mi código? No aparece nada

Hola, Primero unas recomendaciones: 1) te recomiendo escribir en ingles porque en espan~ol es mas dificil tener ayuda 2) te r...

¿Porque no corre mi código? No aparece nada

Hola, Primero unas recomendaciones: 1) te recomiendo escribir en ingles porque en espan~ol es mas dificil tener ayuda 2) te r...

mer än ett år ago | 0

Answered

title according to the file name

Perhaps you want to add values to the titles of your figures, try something like this for k=1:9 subplot(3,3,k) title(...

title according to the file name

Perhaps you want to add values to the titles of your figures, try something like this for k=1:9 subplot(3,3,k) title(...

mer än ett år ago | 1

| accepted

Answered

Plot {(x,y,z)| x²+y²<1, 0<z<x+2}

It depends on what you want. One way to code this would be to define your space, i.e. the range of each of each variable, say x ...

Plot {(x,y,z)| x²+y²<1, 0<z<x+2}

It depends on what you want. One way to code this would be to define your space, i.e. the range of each of each variable, say x ...

mer än ett år ago | 0

Answered

How can I get rid of the gap on the x-axis?

How about axis tight would that work?

How can I get rid of the gap on the x-axis?

How about axis tight would that work?

mer än ett år ago | 0