Errors in turbulent image analysis.
Hello, I am analyzing images of turbulent for a school assignment.
The code below is the code I learned, but an error occurs at lines 5 and 11. Thank you for letting me know where I went wrong.
Thank you and have a good day:)
(Plus, I have attached a photo for analysis below.)
clc; clear all, close all;
I = imread(‘301.png’);
I = rgb2gray(I);
I = I(120:840, 850:1320);%ERROR
figure(1)
imshow(I);
title(‘original image’);
[~,threshold] = edge(I,’sobel’);%ERROR
fudgeFactor = 0.7;
BWs = edge(I,’sobel’,threshold*fudgeFactor);
figure(2)
imshow(BWs);
Title(‘gradient’);
se1 = streal(‘line’,3,90);
se0 = streal(‘line’,3,0);
BWsdil = imdilate(BWs,[se1 se0]);
figure(3)
imshow(Bwsdil);
figure(4)
imshow(labeloverlay(I,BWdil));Hello, I am analyzing images of turbulent for a school assignment.
The code below is the code I learned, but an error occurs at lines 5 and 11. Thank you for letting me know where I went wrong.
Thank you and have a good day:)
(Plus, I have attached a photo for analysis below.)
clc; clear all, close all;
I = imread(‘301.png’);
I = rgb2gray(I);
I = I(120:840, 850:1320);%ERROR
figure(1)
imshow(I);
title(‘original image’);
[~,threshold] = edge(I,’sobel’);%ERROR
fudgeFactor = 0.7;
BWs = edge(I,’sobel’,threshold*fudgeFactor);
figure(2)
imshow(BWs);
Title(‘gradient’);
se1 = streal(‘line’,3,90);
se0 = streal(‘line’,3,0);
BWsdil = imdilate(BWs,[se1 se0]);
figure(3)
imshow(Bwsdil);
figure(4)
imshow(labeloverlay(I,BWdil)); Hello, I am analyzing images of turbulent for a school assignment.
The code below is the code I learned, but an error occurs at lines 5 and 11. Thank you for letting me know where I went wrong.
Thank you and have a good day:)
(Plus, I have attached a photo for analysis below.)
clc; clear all, close all;
I = imread(‘301.png’);
I = rgb2gray(I);
I = I(120:840, 850:1320);%ERROR
figure(1)
imshow(I);
title(‘original image’);
[~,threshold] = edge(I,’sobel’);%ERROR
fudgeFactor = 0.7;
BWs = edge(I,’sobel’,threshold*fudgeFactor);
figure(2)
imshow(BWs);
Title(‘gradient’);
se1 = streal(‘line’,3,90);
se0 = streal(‘line’,3,0);
BWsdil = imdilate(BWs,[se1 se0]);
figure(3)
imshow(Bwsdil);
figure(4)
imshow(labeloverlay(I,BWdil)); turbulent, turbulence, image analysis MATLAB Answers — New Questions