Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
This programe is showing arrey exceed maximum arrey error
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started