# Variables Measurements Linear Combination Essay

≈924 words, ≈3.0 pages (Arial, 14 size)
Cite this essay: APA, MLA, Harvard and other ↓

## Question:

Discuss About The Variables Measurements Linear Combination?

### Introducation

For tracking, we adopt EKF over linear Kalman filtering because most of the times the state variables and management are not linear combination of state variables, inputs to the system and noise. The key variables used in EKF were state estimate (k x ?) and measurement (k z ) whose relation can be depicted in the figure below . This is the advance research of our previous work so comprehensive explanation of EKF can be seen below And from the above illustration diagram we can come up with algorithms to help come up with the matlab codes (Corke, 2011).

### Above algorithms it will be very easy to develop the Matlab codes

Here is the basic program for detecting and tracking moving object from a video (Using colour information). This program first loads the video "singleball.mp4" into workspace and then by using kalman filtering and blob analysis, the moving ball is tracked (Corke, 2011).Therefore the below are the matlab codes for object tracking using colour information.

### Matlab Program for Object Tracking:

// Showing the colour information ( video )

//Initializing the positions of the objects to be tracked

videoPlayer = vision.VideoPlayer('Position',[100,100,500,400]);

foregroundDetector = vision.ForegroundDetector('NumTrainingFrames',10,'InitialVariance',0.05);

// giving the condition or the boundary of tracking of the object, it is false if the minimum Blob area is 70 m.

blobAnalyzer = vision.BlobAnalysis('AreaOutputPort',false,'MinimumBlobArea',70);

kalmanFilter = []; isTrackInitialized = false;

// Introducing a while loop for the video reader.

// Detecting the foreground object through colour image

isObjectDetected = size(detectedLocation, 1) > 0;

if ~isTrackInitialized

if isObjectDetected

// If there is a constant acceleration of the moving object and the detected location within 25 or 10 tracks then marketing track initialized is correct ( the position of the object is correct).

kalmanFilter = configureKalmanFilter('ConstantAcceleration',detectedLocation(1,:), [1 1 1]*1e5, [25, 10, 10], 25);

isTrackInitialized = true;

end

label = ''; circle = zeros(0,3);

else

if isObjectDetected

predict(kalmanFilter);

// And since it is located the label will be corrected (If was in wrong direction, it will be directed to the required direction)

trackedLocation = correct(kalmanFilter, detectedLocation(1,:));

label = 'Corrected';

else

// Therefore the location of the object is the predicted one.

trackedLocation = predict(kalmanFilter);

label = 'Predicted';

end

circle = [trackedLocation, 5];

end

colorImage = insertObjectAnnotation(colorImage,'circle',circle,label,'dominant Color','dominant color');

Foreachforeground ;

Most Frequent color= Dominant color;

ForEvery Object A;

//New Dominance color is that color after demerging while Previous Dominant color is that color before merging.

IFNewDominanceColor= PreviousDominantColor;

ElseIf SameAs A

Else NewObject B;

Step (videoPlayer,colorImage);

If( ObjectSizeInFrame J – ObjectSizeInFrame J-1>Threshold);

//The ID is stored if object size in frame J - object size In frame J-1> 1.

StoredIDandDominantColorInMerged Array;

Else

BobDisapears;

StoreCenterPoint,DominatColorInPastObjectArray;

end

release(videoPlayer);