I want to assign the frame number against all the feature points extracted from the 1st frame, but I am unable to do this. Please help me.
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
When i am extracting the feature points i want to assign the frame no. to the feature points. say auppose after extracting the features of the 1st frame,i am getting featurepoint1, featurepoint2,featurepoint3.. i want to assign the frame no.(which is 1) against the feature.
2 Kommentare
Walter Roberson
am 20 Jun. 2015
What do you mean by assigning the frame number against the feature? That code already indexes arrays by num_images and that corresponds to frame number.
Antworten (1)
Image Analyst
am 20 Jun. 2015
I guess you'd have to pass the frame number into strdupmatch2344467() via the input argument list so that you can then put it into the cell or structure where you're storing all this stuff.
2 Kommentare
Image Analyst
am 20 Jun. 2015
See, that's the problem of using cryptic variable names. How were we supposed to know that st and en were starting and ending frame numbers. I would have named them startingFrame and endingFrame. Anyway, it's not clear what you want to do or what featurepoints is (cell array, structure, table, or whatever). I don't even see that variable in your cropped code snippet screenshot. I don't know what s is - all I know is that it's the output of the function and might be a structure or something. So if you want to attach the starting frame number to that structure, just do
s.frameNumber = startingFrame;
% or endingFrame or st or en or whatever.
Siehe auch
Kategorien
Mehr zu Feature Detection and Extraction finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!