def __init__( self, nScales, nOrientations, imageResolution ): ## 5,8, 11, 14
     self.excelFile = "CASME2-coding-20140508.xlsx" 
     self.dataDir = "C:\Users\Valerie\Desktop\MicroExpress\CASME2\Cropped\Cropped"
     #self.dataDir = "C:\Users\Valerie\Desktop\MicroExpress\CASME2\CASME2_RAW\CASME2-RAW"
     self.mainDir = "C:\Users\Valerie\Desktop\MicroExpress\CASME2"
     self.nScales = nScales
     self.nOrient = nOrientations
     self.imgRes = imageResolution
     ## DIMS needed?
     #self.dims = self.nScales * self.nOrient * self.scaledH * self.scaledW
     self.gabor = gab( nScales, nOrientations, 15 )
    




data = "C:\Users\Valerie\Desktop\MicroExpress\CASME2\Cropped\Cropped"
sub = "sub01"
ep = "EP02_01f"
img = "reg_img46.jpg"
I = pp.readInImg( os.path.join( data, sub, ep, img) ) 

ns = 5
no = 8 
ksize = 21

g = gab( ns, no, ksize )
f = g.generateGaborKernels()
imgs = g.processGaborRaw( I, f )

fVect = []

for fIx, fImg in enumerate( imgs ):
    o,s = getOrientationScaleIx( fIx, no, ns )

    maxLocs = []
    rsize,  rIx = getRectangleParams( fImg, 8 )
    slices = sliceImg( fImg, rsize, rIx )

    for slice in slices:
        sliceR, sliceC = np.shape( slice )
        if s == 0:
def getResponseVals(fImg, maxLoc):
    return fImg[maxLoc[0]][maxLoc[1]]


data = "C:\Users\Valerie\Desktop\MicroExpress\CASME2\Cropped\Cropped"
sub = "sub01"
ep = "EP02_01f"
img = "reg_img46.jpg"
I = pp.readInImg(os.path.join(data, sub, ep, img))

ns = 5
no = 8
ksize = 21

g = gab(ns, no, ksize)
f = g.generateGaborKernels()
imgs = g.processGaborRaw(I, f)

fVect = []

for fIx, fImg in enumerate(imgs):
    o, s = getOrientationScaleIx(fIx, no, ns)

    maxLocs = []
    rsize, rIx = getRectangleParams(fImg, 8)
    slices = sliceImg(fImg, rsize, rIx)

    for slice in slices:
        sliceR, sliceC = np.shape(slice)
        if s == 0: