WaqasSultani / AnomalyDetectionCVPR2018

503 stars 185 forks source link

About Save_C3DFeatures_32Segments.m #44

Open poweryin opened 5 years ago

poweryin commented 5 years ago

Hi,I have a confusion,if the video is short,It contains 320 frames.Then it have 320/16 =20clips.Howeverr,the code shows divide the video to 32segments,I don't understand how it divided into 32(20<32)segments

Best Wishes Thanks

rajanjitenpatel commented 5 years ago

So far, what I have understood from Save_C3DFeatures_32Segments.m if clips size is less then 32 segments it will create duplicate features. For example. For 20 cilps (320/16). linspace will create list [0, 0.625, 1.25, 1.875, 2.5 ... so on upto.., 20] // 20/32= 0.625 and after performing round() - [0, 0, 1, 1, 2, 3, 3 ...so on upto.. 20]. As you can see Segments_Features will contain duplicate features row[0] is equal to row[1] in order to make 32 segments.

For more detail information. I have created python code to generate 32 segments for this project u can take a look. project link - C3D feature extraction using Google Colab link - 32 segmentation python code

poweryin commented 5 years ago

Thanks for your detailed reply, I get it

rajanjitenpatel commented 5 years ago

@poweryin close #44