Question: c l c ; clear all; close all; vid 9 0 = VideoReader ( SAE _ 9 0 _ teja.MOV ) ; no _
;
clear all;
close all;
vid VideoReaderSAEteja.MOV";
noofframes vidNumFrames;
time vidDuration;
framerate vidFrameRate;
for : :noofframes
filename strcatframe numstrijpg;
read;
imwriteafilename;
imrotate ;
imcropgray;
imwritefilename:
end
baseimg imreadframejpg;
baseimg histeqbaseimg;
threshold ;
binaryMask baseimg threshold;
baseimg baseimg uintbinaryMask;
bwimg imbinarizebaseimg, "global";
inframe ;
finframe ;
inframe;
for inframe::finframe
imgread imreadframe numstrjjpg ;
imgread histeq imgread;
threshold ;
binaryMask imgread threshold;
imgread imgread. uintbinaryMask;
bwimg imbinarizeimgread, "global";
diffimg bwimg bwimg;
diffimg diffimg;
streldisk:;
dilimg imdilatediffimg,SE;
subplot ;
imshowdilimg;
Image dilimg;
hold on
axis on
B sumdilimg, ;
minValue minIndexmin;
loc ;
loc minIndex ;
;
pause
end
postime :;
degree ;
coefficients polyfitpostime: postime:
xFit linspace ;
yFit polyvalcoefficients xFit;
figure
subplot
plotpostime : postime : ;
hold on;
plotxFit yFit, r 'LineWidth', ;
hold off;
xlabelTimes;
ylabelLocation of ball';
titleCurve fitting for LocationTime';
legendOriginal Points', 'Fitted Curve';
slopeCoefficients polydercoefficients;
slopeCurve polyvalslopeCoefficients xFit;
subplot ;
plotxFit slopeCurve, g 'LineWidth', ;
xlabelTime;
ylabelVelocity;
titleVelocity Time Curve';
velocity polyvalslopeCoefficients;
Viscocity Calculation
dia ;
rho;
rhob ;
;
viscocity rhob rho: velocity
I want this programme in matlab with some changes
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
