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)
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
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.
Sourav  Das
Sourav Das am 20 Jun. 2015
Bearbeitet: Sourav Das am 20 Jun. 2015
Walter Roberson, i am extracting the features of frame 1, I am getting some number of feature points for the frame 1,for example after extracting features of 1st frame i am getting 4 feature points f1 f2 f3 f4 i want to display as output in the command f1 1 f2 1 f3 1 f4 1 or as f1 f2 f3 f4 1 1 1 1 (row wise or column wise any one will do the work) This i want to display as output in matlab command

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Image Analyst
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
Sourav  Das
Sourav Das am 20 Jun. 2015
Bearbeitet: Image Analyst am 20 Jun. 2015
I am passing the input arguments i.e. the path name, img name, start frame no. and end frame no. After that, when i am extracting the featurepoints of the 1st frame i am getting some featurepoints. I want to assign 1st frame no.(1) to features points and display in matlab command.
Image Analyst
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.

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by