Пример #1
0
def outliner_transform(in_path,out_path,dims=0):
    def helper(frames):
        pclouds=[ nonzero_points(frame_i) for frame_i in frames]
        pclouds=normalize(pclouds)
        new_frames=[get_proj(pcloud_i,dims) for pcloud_i in pclouds]        
        action_img=np.mean(new_frames,axis=0)
        action_img[action_img >0]=100
        return action_img
    transform=[helper,smooth_proj,scale]    
    imgs.action_img(in_path,out_path,transform)#,single_frame=False)
Пример #2
0
def action_exp(in_path,out_path,use_agum=False):
    files.make_dir(out_path)
    paths= get_paths(out_path,["action","agum"])
    def helper(frames):
        action_img=np.mean(frames,axis=0)
        return action_img#.astype('uint8')
    fun=[helper,proj.Scale()]
    imgs.action_img(in_path,paths["action"],fun)
    if(use_agum):
        agum_fun=agum.action.get_action_agum()
        agum_fun(paths["action"],paths["agum"])
Пример #3
0
def diff_img(in_path, out_path):
    fun = [mean_y, get_rescale(96, 64)]
    imgs.action_img(in_path, out_path, fun)
Пример #4
0
def outliner_action_img(in_path, out_path):
    helper = BuildActionImg([outliner_proj(0), outliner_proj(2), sub_sample])
    imgs.action_img(in_path, out_path, helper)
Пример #5
0
def simple_action(in_path, out_path):
    def helper(frames):
        print(len(frames))
        return np.mean(frames, axis=0)

    imgs.action_img(in_path, out_path, helper)