__all__ = []

from lib.exp.featx.base import Featx
from lib.exp.tools.slider import Slider


class SlideFeatx(Featx, Slider):
    def __init__(self, root, name):
        Featx.__init__(self, root, name)
        Slider.__init__(self, root, name)

    def get_feats(self):
        imgl = self.get_slides(None, gray=True, resize=True)
        self.feats(imgl, prefix="s")

@@ -42,17 +42,17 @@
 ort Feat
-x
+s
 %0Afrom li
@@ -88,16 +88,90 @@
 der%0A
+from lib.exp.tools.video import Video%0Afrom lib.exp.prepare import Prepare%0A
 %0A%0Aclass 
 Slid
@@ -166,21 +166,16 @@
 %0A%0Aclass 
-Slide
 Featx(Fe
@@ -180,17 +180,9 @@
 Feat
-x, Slider
+s
 ):%0A 
@@ -228,17 +228,17 @@
     Feat
-x
+s
 .__init_
@@ -261,49 +261,177 @@
 me)%0A
+%0A
     
-    Slider.__init__
+def get_slide_feats(self):%0A        ss = Slider
 (self
-, 
+.
 root, 
+self.
 name)
+%0A        imgl = ss.get_slides(None, gray=True, resize=True)%0A        self.feats(imgl, prefix=%22s%22)
 %0A%0A  
@@ -440,16 +440,22 @@
 def get_
+frame_
 feats(se
@@ -471,54 +471,133 @@
     
-imgl = self.get_slides(None, gray=True, resize
+pp = Prepare(self.root, self.name)%0A        vv = Video(self.root, self.name)%0A        imgl = vv.get_frames(pp.frame_ids(), gray
 =Tru
@@ -616,28 +616,28 @@
 elf.feats(imgl, prefix=%22
-s
+f
 %22)%0A

Change to use `featx` in package