#Image Processing

#MATLAB Learner

#Whatsapp+91-8387942066

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

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

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

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

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

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

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

12 days ago | 1

Answered

Calculating the contributing terms of a summation equation

Please try any issue let me know https://www.mathworks.com/help/symbolic/symsum.html

Calculating the contributing terms of a summation equation

Please try any issue let me know https://www.mathworks.com/help/symbolic/symsum.html

12 days ago | 0

Answered

Measure the spreading length using image analysis.

Two ways: I am considering the pixel distance length based on spaial coordinates (Not the general scale length like mm or cm) O...

Measure the spreading length using image analysis.

Two ways: I am considering the pixel distance length based on spaial coordinates (Not the general scale length like mm or cm) O...

12 days ago | 0

Answered

Creating a histogram with specified data

If you want two remove those extra blank space, you can use xlim (Limitinng x axis scale). x = 2.5*rand(1,200)-1.7 hist(x,[-6...

Creating a histogram with specified data

If you want two remove those extra blank space, you can use xlim (Limitinng x axis scale). x = 2.5*rand(1,200)-1.7 hist(x,[-6...

12 days ago | 0

| accepted

Answered

Unrecognized function or variable 'helperExtractAuditoryFeatures'

I sense two possible reasons: Deep learning toolbox in not installed. (Type "ver" in the command window, it shows all installe...

Unrecognized function or variable 'helperExtractAuditoryFeatures'

I sense two possible reasons: Deep learning toolbox in not installed. (Type "ver" in the command window, it shows all installe...

14 days ago | 0

Answered

How to extract second largest blob from image?

large_1=bwareafilt(binary_image,1); %Extracting Large Blob large_2=binary_image & ~large_1; % Logical Operation to get 2nd larg...

How to extract second largest blob from image?

large_1=bwareafilt(binary_image,1); %Extracting Large Blob large_2=binary_image & ~large_1; % Logical Operation to get 2nd larg...

15 days ago | 1

Answered

I am trying to calculate the perimeterof leaf but i'm getting the output as 2.7895e+3 in this way .please check this and correct my code. Thankyou in advance

As the sample leaf image is not attched with the question , hence I have checked with another image and it shown correctly lea...

I am trying to calculate the perimeterof leaf but i'm getting the output as 2.7895e+3 in this way .please check this and correct my code. Thankyou in advance

As the sample leaf image is not attched with the question , hence I have checked with another image and it shown correctly lea...

19 days ago | 0

Answered

Median (Median) Filter Matlab

disp('##Input Data') a=randi([1,10],[4,5]) %Any random data %% # Using MATLAB Function medfilt2 disp('##Using MATLAB Median...

Median (Median) Filter Matlab

disp('##Input Data') a=randi([1,10],[4,5]) %Any random data %% # Using MATLAB Function medfilt2 disp('##Using MATLAB Median...

19 days ago | 0

Answered

How can I save 'H' using Runge-Kutta time-step in a single . mat file each day while the code will be running for six days?

Alert: I have no experience running code for six days. I also do not know the system requirements for this work. But here, based...

How can I save 'H' using Runge-Kutta time-step in a single . mat file each day while the code will be running for six days?

Alert: I have no experience running code for six days. I also do not know the system requirements for this work. But here, based...

1 month ago | 0

Answered

why this is Index exceeds matrix dimensions?

Vc = 2; Vm = 1.5; fc = 100; fm = 10; ts= 1/1000; n = 0:99; t = ts*n; vc = Vc*cos(2*pi*fc*t); vm = Vm*cos(2*pi*fm*t); va...

why this is Index exceeds matrix dimensions?

Vc = 2; Vm = 1.5; fc = 100; fm = 10; ts= 1/1000; n = 0:99; t = ts*n; vc = Vc*cos(2*pi*fc*t); vm = Vm*cos(2*pi*fm*t); va...

1 month ago | 0

Answered

How to store index values in the form of arrays using for loop?

Cell array rng default M = zeros(randi([3 6]),randi([3 6])) [u,v] = size(M) indices=cell(u,v); for i = 1:u for j = 1:...

How to store index values in the form of arrays using for loop?

Cell array rng default M = zeros(randi([3 6]),randi([3 6])) [u,v] = size(M) indices=cell(u,v); for i = 1:u for j = 1:...

1 month ago | 1

Answered

Finding specific iteration in a triple for loop

You can't do that, as all having different lengths. For equaly vector sie you can get the undex position and find the correspond...

Finding specific iteration in a triple for loop

You can't do that, as all having different lengths. For equaly vector sie you can get the undex position and find the correspond...

1 month ago | 0

| accepted

Answered

difference of image histograms

im1=rgb2gray(imread('image1_name')); im2=rgb2gray(imread('image2_name')); diff_hist=imhist(im1)-imhist(im2); plot(diff_hist) ...

difference of image histograms

im1=rgb2gray(imread('image1_name')); im2=rgb2gray(imread('image2_name')); diff_hist=imhist(im1)-imhist(im2); plot(diff_hist) ...

1 month ago | 0

Answered

Plot a signal in an interval of time

If you already have the sata ranges transXn, then you can extract only those data points having >-2 and <2 Xnsum=transXn(trans...

Plot a signal in an interval of time

If you already have the sata ranges transXn, then you can extract only those data points having >-2 and <2 Xnsum=transXn(trans...

1 month ago | 0

Answered

how to use abs function in this code?

a=input('Enter the size of rows:'); b=input('Enter the size of columns:'); A=randi([-30 30],a,b) r=zeros(a); d=zeros(a); fo...

how to use abs function in this code?

a=input('Enter the size of rows:'); b=input('Enter the size of columns:'); A=randi([-30 30],a,b) r=zeros(a); d=zeros(a); fo...

1 month ago | 0

Answered

What is this Matlab symbol '' | ''

Logical OR Operation See details here https://www.mathworks.com/help/symbolic/or.html

What is this Matlab symbol '' | ''

Logical OR Operation See details here https://www.mathworks.com/help/symbolic/or.html

1 month ago | 1

Answered

Find aggrement for Classification problem between 5 raters

Then count the number of tumors, in the result image

Find aggrement for Classification problem between 5 raters

Then count the number of tumors, in the result image

1 month ago | 0

Answered

Copy move forgery detection sift Ransac

You can can give any two images to create a mosaic of images. As per definition in the code- "SIFT_MOSAIC demonstrates matchin...

Copy move forgery detection sift Ransac

You can can give any two images to create a mosaic of images. As per definition in the code- "SIFT_MOSAIC demonstrates matchin...

2 months ago | 0

Answered

Trying to change pixels in an image based on values I have obtained in a previous Array.

image1=[1225 534;532 212;1315 440;39 1;1542 503;1509 902]; max1=max(image1(:)); image2=uint8(zeros(max1,max1); image2(image1(...

Trying to change pixels in an image based on values I have obtained in a previous Array.

image1=[1225 534;532 212;1315 440;39 1;1542 503;1509 902]; max1=max(image1(:)); image2=uint8(zeros(max1,max1); image2(image1(...

2 months ago | 0

Answered

finding forward direction in matlab

Please use the another index varibale name inside if statement, like k=1; for i=2: m-1 if a(i)>=1 && a(i-1)>i && a(i+1)...

finding forward direction in matlab

Please use the another index varibale name inside if statement, like k=1; for i=2: m-1 if a(i)>=1 && a(i-1)>i && a(i+1)...

2 months ago | 0

Answered

How to plot smoothing line like on excel ?

I want to plot this data in a smooth line, what a functions should i use ? smooth function https://www.mathworks.com/help/cur...

How to plot smoothing line like on excel ?

I want to plot this data in a smooth line, what a functions should i use ? smooth function https://www.mathworks.com/help/cur...

2 months ago | 0

Answered

intersection of lines and curves

Have you tried this way? data1 data2 diff=data1-data2; small_value=?? % Define small value to deal with samll differenece ...

intersection of lines and curves

Have you tried this way? data1 data2 diff=data1-data2; small_value=?? % Define small value to deal with samll differenece ...

2 months ago | 1