Research Article

An Innovative SIFT-Based Method for Rigid Video Object Recognition

Algorithm 4

RecognizingthenUpdating(Output:recognized frames, ; Input: , ) //to find frames that contain the target object and update feature database with them iteratively.
(1)    //to initiate the loop variable
(2)   While Do //to begin the updating loop
(3)    {
(4)    Set ,
(5)    For to Num( ) do   represents the number of frame views in .
(6)    {
(7)     Featurepointmatch(Output: , ; Input: , ) //to gain matching feature
       keypoint pairs between the feature view and feature models
(8)     Recognizinginfrmae(output: recognized or not, , ; input: , )
       //to confirm whether the frame image contain the target object or not.
(9)     If recognized then
(10)  {
(11)     ,   //to save the corresponding feature views of the frame image
   into the scalable sliding window, as Figure 6 shown.
(12)    FModelUpdating(Output: ; Input: , , , ) //to update feature models
   in with recognized feature view
(13)  }
(14)  }
(15)    If Empty( ) then //to judge the scalable sliding window is empty or not
(16)     {
(17)      Break //to jump out the loop
(18)     }
(19)    Else
(20)    {
(21)      For to do
(22)     {
(23)       For to do
(24)    {
(25)     FFeatureUpdating(Output: ; Input: , , )
(26)    }
(27)       Delete( , ) //to delete feature view from the temporal feature database
(28)     }
(29)   }
(30)    Dump( ) //to empty
(31)  }
(32) return