#Image Processing

#MATLAB Learner Alma #TezpurUniv

#Whatsapp+91-8387942066

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...

5 days 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

6 days 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...

7 days 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...

7 days 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...

12 days 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...

24 days 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...

26 days 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...

29 days 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)

1 month 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...

1 month ago | 1

| accepted

Answered

how can we read matrix step by step in kalman filter

See you have mat variable xt = rand(3,50); if you wish to read thia xt variable matrix column by column then 1 Column=xt(:,1);...

how can we read matrix step by step in kalman filter

See you have mat variable xt = rand(3,50); if you wish to read thia xt variable matrix column by column then 1 Column=xt(:,1);...

2 months ago | 0

| accepted

Answered

segmentation medical image irm

Lets say "seg_image" is the segmented image. Once segmentation, all regions have different pixels value, please check the pixel ...

segmentation medical image irm

Lets say "seg_image" is the segmented image. Once segmentation, all regions have different pixels value, please check the pixel ...

2 months ago | 0

Answered

matrix component algebra with digraph

[row,col]=size(A); %Expecting C is 1 D vector and having col number of rows minimum M=zeros(row,col); for i=1:row for j=1:co...

matrix component algebra with digraph

[row,col]=size(A); %Expecting C is 1 D vector and having col number of rows minimum M=zeros(row,col); for i=1:row for j=1:co...

2 months ago | 1

Answered

Error: "index in position 2 exceeds array bounds"

Temp = DOdata.data(:,3) DOdata.data have only 2 columns, you are trying to access 3rd column.

Error: "index in position 2 exceeds array bounds"

Temp = DOdata.data(:,3) DOdata.data have only 2 columns, you are trying to access 3rd column.

2 months ago | 0

Answered

I want to add some of requiring to my codes ? How can I ?

while n<=0 n=input('Please enter the number of pizzas to order: '); if n<=0 disp('Value should be atleast 1 pizza to continue...

I want to add some of requiring to my codes ? How can I ?

while n<=0 n=input('Please enter the number of pizzas to order: '); if n<=0 disp('Value should be atleast 1 pizza to continue...

2 months ago | 0

Answered

find Center pixel to maximum distance

[r,c]=size(image); centre_pix=image(round(r/2),round(c/2)); The position of the pixel is [round(r/2),round(c/2)], now calculat...

find Center pixel to maximum distance

[r,c]=size(image); centre_pix=image(round(r/2),round(c/2)); The position of the pixel is [round(r/2),round(c/2)], now calculat...

2 months ago | 0

Answered

How to interchange both plot and bar colour

I feel you are looking for transperancy, so that both plots shoud clearly visible. month = {'apr19', 'may19', 'june19', 'july1...

How to interchange both plot and bar colour

I feel you are looking for transperancy, so that both plots shoud clearly visible. month = {'apr19', 'may19', 'june19', 'july1...

2 months ago | 0

Answered

Undefined function or variable

As you mentioned that it is main scripts (Not associated function call). The error clearly stated that "Undefined function or va...

Undefined function or variable

As you mentioned that it is main scripts (Not associated function call). The error clearly stated that "Undefined function or va...

3 months ago | 0

Answered

How to find the difference (in pixels) between two boundaries/countours?

You can do number of ways: (Considering the single pixel value, as both section has same pixel value, may have small different) ...

How to find the difference (in pixels) between two boundaries/countours?

You can do number of ways: (Considering the single pixel value, as both section has same pixel value, may have small different) ...

3 months ago | 0

| accepted

Answered

Detecting and segmenting bubbles in a video

As you have already tried for basic segmentation approaches, according to my initial observation all bubbles are also quite chal...

Detecting and segmenting bubbles in a video

As you have already tried for basic segmentation approaches, according to my initial observation all bubbles are also quite chal...

3 months ago | 0

| accepted

Answered

How to call a function with multiple inputs in a script file?

Lets say the function name is fun1, which having 3 inputs and 3 outputs . Now call the function form another Matlab script, as f...

How to call a function with multiple inputs in a script file?

Lets say the function name is fun1, which having 3 inputs and 3 outputs . Now call the function form another Matlab script, as f...

3 months ago | 0

| accepted

Answered

How to create a loop on a matrix whose elements are also a row/column matrix.

%Partial Code DT=zeros(1,length(x)); for i=1:length(x) Z=[E(i)-V K1; K2 F(i)-V]; DT(i)=det(Z); end

How to create a loop on a matrix whose elements are also a row/column matrix.

%Partial Code DT=zeros(1,length(x)); for i=1:length(x) Z=[E(i)-V K1; K2 F(i)-V]; DT(i)=det(Z); end

3 months ago | 0

| accepted

Answered

counting how many times a certain value is repeated in a fixed interval

Multiple Ways: One way X=[0,0,1,1,0,1,1,1,1,1,0,0]; idx=find(X==1) for i=1:2:length(idx)-1 data(i)=idx(i+1)-idx(i) end ...

counting how many times a certain value is repeated in a fixed interval

Multiple Ways: One way X=[0,0,1,1,0,1,1,1,1,1,0,0]; idx=find(X==1) for i=1:2:length(idx)-1 data(i)=idx(i+1)-idx(i) end ...

3 months ago | 0

Answered

For - While Loop Nested

R = 8.914; T=linspace(1.1,0.1,250); deltaG = -287500 + 22.75.*T; a= %?? % Define it PCO=linspace(a,0.01,100); deltaGnew=...

For - While Loop Nested

R = 8.914; T=linspace(1.1,0.1,250); deltaG = -287500 + 22.75.*T; a= %?? % Define it PCO=linspace(a,0.01,100); deltaGnew=...

3 months ago | 0

Answered

Image Processing Operator Approximation Using Deep Learning

As clearly stated in the documentation, this example uses two tollboxes- Image Processing Toolbox Deep Learning Toolbox If yo...

Image Processing Operator Approximation Using Deep Learning

As clearly stated in the documentation, this example uses two tollboxes- Image Processing Toolbox Deep Learning Toolbox If yo...

3 months ago | 0

Answered

Counter in for loop is not working as expected

data1=ones(1,3); data2=1+ones(1,5); result=repmat([data1,data2],1,5)

Counter in for loop is not working as expected

data1=ones(1,3); data2=1+ones(1,5); result=repmat([data1,data2],1,5)

3 months ago | 0

Answered

How to use an if statement to substitute NaN

p1=[11 15 7 40 50 100]; p2=[8 14 6 38 35 95]; %Combine and take row mean p3=[p1' p2']; p4=mean(p3,2); %Determine percent di...

How to use an if statement to substitute NaN

p1=[11 15 7 40 50 100]; p2=[8 14 6 38 35 95]; %Combine and take row mean p3=[p1' p2']; p4=mean(p3,2); %Determine percent di...

3 months ago | 0

| accepted

Answered

Results as a loop

%Last section data1=0; results=[]; for i=1:length(T) result(b+data1,:)= params(:,:,T(i)); data1=data1+5; end

Results as a loop

%Last section data1=0; results=[]; for i=1:length(T) result(b+data1,:)= params(:,:,T(i)); data1=data1+5; end

3 months ago | 1