#Image Processing

#MATLAB Learner Alma #TezpurUniv

#Whatsapp+91-8387942066

Answered

How to remove Horizontal and vertical lines only from an Image?

Sir I saw the image on telegram, hope I understand the question, One way is- Steps: Convert RGB to Gray Gray Image to Binary ...

How to remove Horizontal and vertical lines only from an Image?

Sir I saw the image on telegram, hope I understand the question, One way is- Steps: Convert RGB to Gray Gray Image to Binary ...

17 days ago | 1

Answered

The values of the "a" and "c" properties must be matrices with the same number of columns.

Error clearly stated that A and c state-space matrices to be same number of columns to avoid this error. A=[-0.0895 -0.286 0;-...

The values of the "a" and "c" properties must be matrices with the same number of columns.

Error clearly stated that A and c state-space matrices to be same number of columns to avoid this error. A=[-0.0895 -0.286 0;-...

17 days ago | 0

Answered

Trying to colour a circle but not all only one qudrant want to colour

viscircles([0,0],1); hold on; alpha=linspace(0,90)/180*pi; % Manage Angles ^^ here Quadrant angles patch([0 cos(alpha) 0], [...

Trying to colour a circle but not all only one qudrant want to colour

viscircles([0,0],1); hold on; alpha=linspace(0,90)/180*pi; % Manage Angles ^^ here Quadrant angles patch([0 cos(alpha) 0], [...

17 days ago | 0

Answered

how can i run iterations?

...... while abs(new(1:3)- ep)>0.01 for i = 1 : n x(i) = (ep(1) - sat(i,1)); y(i) = (ep(2) - sat(i,2)); z(i) = (ep...

how can i run iterations?

...... while abs(new(1:3)- ep)>0.01 for i = 1 : n x(i) = (ep(1) - sat(i,1)); y(i) = (ep(2) - sat(i,2)); z(i) = (ep...

17 days ago | 0

Answered

Function writing for variable matrix

" write for this function such that when I input A, B or C at that position" Please note: In the function defination, only A is...

Function writing for variable matrix

" write for this function such that when I input A, B or C at that position" Please note: In the function defination, only A is...

17 days ago | 0

| accepted

Answered

noise is added to the central region of each image

Considering im is a gray level image, and the central part of the image considered as mid section of the image as per its rows a...

noise is added to the central region of each image

Considering im is a gray level image, and the central part of the image considered as mid section of the image as per its rows a...

17 days ago | 0

Answered

How to iterate through an array to check for adjacent elements that are equal to one another using loops.

"How to iterate through an array to check for adjacent elements that are equal to one another using loops" Here a is an 1D arra...

How to iterate through an array to check for adjacent elements that are equal to one another using loops.

"How to iterate through an array to check for adjacent elements that are equal to one another using loops" Here a is an 1D arra...

18 days ago | 1

Answered

How does imnoise work with poisson option?

No sir, the noise is not added yet, just you generated noise based on x data x = 2 + 2*cos(linspace(-pi,pi,100)); subplot(121)...

How does imnoise work with poisson option?

No sir, the noise is not added yet, just you generated noise based on x data x = 2 + 2*cos(linspace(-pi,pi,100)); subplot(121)...

18 days ago | 0

Answered

segmentation using k-means clustering

Part 1 "I 'm just tried to code the segmentation part.but i am not sure is it correct or not. In segmentation work, answer wo...

segmentation using k-means clustering

Part 1 "I 'm just tried to code the segmentation part.but i am not sure is it correct or not. In segmentation work, answer wo...

18 days ago | 0

Answered

how to read two specific data from a folder?

If both images are in current working directory, please mention the image names only(with extension like png,jpg) im1=imread('I...

how to read two specific data from a folder?

If both images are in current working directory, please mention the image names only(with extension like png,jpg) im1=imread('I...

19 days ago | 0

Answered

Fit a curve along points through starting and end point

You can fit the curve in number od ways, see which tyep perfectly fit as per your expectation x_data=randi(10,[1,10])'; y_data...

Fit a curve along points through starting and end point

You can fit the curve in number od ways, see which tyep perfectly fit as per your expectation x_data=randi(10,[1,10])'; y_data...

19 days ago | 0

Answered

How to create a threshold on a plot?

Example: data_2d=rand(1,20); %Example threshold_val=0.5; binary_array=data_2d>threshold_val % This create a binary array b...

How to create a threshold on a plot?

Example: data_2d=rand(1,20); %Example threshold_val=0.5; binary_array=data_2d>threshold_val % This create a binary array b...

19 days ago | 1

Answered

Fourier Series for a Periodic Function

display('Problem 1_Example_17.1') ao=1/4; N = 100000; Wo = pi; t = -1:.001:11; f = zeros(1,length(t)); n =linspace(1,2,le...

Fourier Series for a Periodic Function

display('Problem 1_Example_17.1') ao=1/4; N = 100000; Wo = pi; t = -1:.001:11; f = zeros(1,length(t)); n =linspace(1,2,le...

20 days ago | 1

| accepted

Answered

Code take forever to run and output

Sir, I have tested the code with low iteration numbers, say 10 and it is working perfectly. Yes if you consider the iteration nu...

Code take forever to run and output

Sir, I have tested the code with low iteration numbers, say 10 and it is working perfectly. Yes if you consider the iteration nu...

20 days ago | 0

| accepted

Answered

How to use 'drawnow' to create an animated surface plot from audio measurements taken in a matrix of 10 x 10 microphone positions

for i=1:100 data=rand(10,10); % Choose your incoming audio data here fig=surf(data); grid on; pause(0.1); % Animation s...

How to use 'drawnow' to create an animated surface plot from audio measurements taken in a matrix of 10 x 10 microphone positions

for i=1:100 data=rand(10,10); % Choose your incoming audio data here fig=surf(data); grid on; pause(0.1); % Animation s...

20 days ago | 0

Answered

Create an app in MATLAB App Designer. Use a RadioButton Group to choose the different functions. When you choose one function it should be displayed in a graph in the app and the title should state which graph it is. the functions are sine,cosine,lnx

Steps: (Or Refer any tutorial, please check in the MATLAB youtube channel) 1. Open MATLAB 2. Type t...

Create an app in MATLAB App Designer. Use a RadioButton Group to choose the different functions. When you choose one function it should be displayed in a graph in the app and the title should state which graph it is. the functions are sine,cosine,lnx

Steps: (Or Refer any tutorial, please check in the MATLAB youtube channel) 1. Open MATLAB 2. Type t...

25 days ago | 0

Answered

Incorrect plot domain when using linspace

plot(x,y); if plot(y);

Incorrect plot domain when using linspace

plot(x,y); if plot(y);

25 days ago | 0

| accepted

Answered

3d plot with different length of x and y

As per the you data sizes, following is also allowed contour3(x,y,z'); Note: I presumed that x and y are continously increasin...

3d plot with different length of x and y

As per the you data sizes, following is also allowed contour3(x,y,z'); Note: I presumed that x and y are continously increasin...

25 days ago | 0

| accepted

Answered

Plotting a specific part of the array

idy1=y1(y1~=y2) idy2=y2(y2~=y1) Results: idy1 = 6 7 8 9 8 7 7 6 idy2 = 4 3 ...

Plotting a specific part of the array

idy1=y1(y1~=y2) idy2=y2(y2~=y1) Results: idy1 = 6 7 8 9 8 7 7 6 idy2 = 4 3 ...

27 days ago | 0

| accepted

Answered

Find distance between foregrounds of two binary images

Steps: 1.As you already know the indices of all three lines from the 2nd image. If not following is the way [r2 c2]=find(imag...

Find distance between foregrounds of two binary images

Steps: 1.As you already know the indices of all three lines from the 2nd image. If not following is the way [r2 c2]=find(imag...

1 month ago | 0

Answered

Removing Reverse Rows in a Permutation Matrix in Matlab

P=perms([1 2 3]); result=P(unique(P(:,2)),:) result = 3 2 1 3 1 2 2 3 1

Removing Reverse Rows in a Permutation Matrix in Matlab

P=perms([1 2 3]); result=P(unique(P(:,2)),:) result = 3 2 1 3 1 2 2 3 1

1 month ago | 0

Answered

How to detect the crack and calculate its length ?

[S T]=graythresh(grayImage); bwImage=imbinarize(grayImage,T); SE = strel('diamond',1) bwImage=imerode(bwImage,SE); bwImage=b...

How to detect the crack and calculate its length ?

[S T]=graythresh(grayImage); bwImage=imbinarize(grayImage,T); SE = strel('diamond',1) bwImage=imerode(bwImage,SE); bwImage=b...

1 month ago | 0

Answered

Colors and Symbols for Loop Iteration

#Example: you can set as per your requirements. color_sym={'rx','go','b-','m--'}; for i=1:4 plot(rand(1,10),rand(1,10),c...

Colors and Symbols for Loop Iteration

#Example: you can set as per your requirements. color_sym={'rx','go','b-','m--'}; for i=1:4 plot(rand(1,10),rand(1,10),c...

1 month ago | 0

Answered

spot diameter in imported image

Here are the all pixels, which are greater than 13%*max image_data=rgb2gray(imread('image_test5.jpeg')); max_pix=max(image_dat...

spot diameter in imported image

Here are the all pixels, which are greater than 13%*max image_data=rgb2gray(imread('image_test5.jpeg')); max_pix=max(image_dat...

1 month ago | 0

Answered

Using GUI to Edit Image

I am providing here the alternate option, now a days I rarely do GUI (Guide option). MATLAB have great appdesigner features, yo...

Using GUI to Edit Image

I am providing here the alternate option, now a days I rarely do GUI (Guide option). MATLAB have great appdesigner features, yo...

2 months ago | 1

Answered

Cell array summation when arrays are different sizes

"I am trying to some cell arrays containing matrices of different sizes stored at designated index points to arrays. See the bel...

Cell array summation when arrays are different sizes

"I am trying to some cell arrays containing matrices of different sizes stored at designated index points to arrays. See the bel...

2 months ago | 0

Answered

Save loop values in a matrix

If the resultant long and Lat are just numeric number use array to save the data Example iter=1; Long=[]; Lat=[]; while co...

Save loop values in a matrix

If the resultant long and Lat are just numeric number use array to save the data Example iter=1; Long=[]; Lat=[]; while co...

2 months ago | 0

| accepted

Answered

Creating Matrix based on grouping of elements in cell array

A=de2bi(cell2mat({[1 3],[2],[4 5 6]}),6)

Creating Matrix based on grouping of elements in cell array

A=de2bi(cell2mat({[1 3],[2],[4 5 6]}),6)

2 months ago | 0

Answered

quiver3 not plotting the end point

I dont find any issue, please dont mixed up with the quiver and plot3, see your example quiver3(0,2,4,2,5,7); hold on; quive...

quiver3 not plotting the end point

I dont find any issue, please dont mixed up with the quiver and plot3, see your example quiver3(0,2,4,2,5,7); hold on; quive...

2 months ago | 1

| accepted