예제 #1
0
파일: io.py 프로젝트: disselkamp/spirit
def Image_Append(p_state,
                 filename,
                 iteration=0,
                 fileformat=0,
                 idx_image=-1,
                 idx_chain=-1):
    spiritlib.WrapFunction(_Image_Append, [
        p_state,
        ctypes.c_char_p(filename.encode('utf-8')), iteration, fileformat,
        idx_image, idx_chain
    ])
예제 #2
0
def PlayPause(p_state,
              method_type,
              optimizer_type,
              n_iterations=-1,
              n_iterations_log=-1,
              idx_image=-1,
              idx_chain=-1):
    spiritlib.WrapFunction(_PlayPause, [
        p_state,
        ctypes.c_char_p(method_type.encode('utf-8')),
        ctypes.c_char_p(optimizer_type.encode('utf-8')),
        ctypes.c_int(n_iterations),
        ctypes.c_int(n_iterations_log),
        ctypes.c_int(idx_image),
        ctypes.c_int(idx_chain)
    ])
예제 #3
0
def SingleShot(p_state,
               method_type,
               solver_type,
               n_iterations=-1,
               n_iterations_log=-1,
               idx_image=-1,
               idx_chain=-1):
    spiritlib.WrapFunction(_SingleShot, [
        ctypes.c_void_p(p_state),
        ctypes.c_char_p(method_type.encode('utf-8')),
        ctypes.c_char_p(solver_type.encode('utf-8')),
        ctypes.c_int(n_iterations),
        ctypes.c_int(n_iterations_log),
        ctypes.c_int(idx_image),
        ctypes.c_int(idx_chain)
    ])
예제 #4
0
def SingleShot(p_state,
               method_type,
               optimizer_type,
               n_iterations=-1,
               n_iterations_log=-1,
               idx_image=-1,
               idx_chain=-1):
    # _SingleShot(p_state, ctypes.c_char_p(method_type), ctypes.c_char_p(optimizer_type), ctypes.c_int(n_iterations), ctypes.c_int(n_iterations_log), ctypes.c_int(idx_image), ctypes.c_int(idx_chain))
    spiritlib.WrapFunction(_SingleShot, [
        p_state,
        ctypes.c_char_p(method_type.encode('utf-8')),
        ctypes.c_char_p(optimizer_type.encode('utf-8')),
        ctypes.c_int(n_iterations),
        ctypes.c_int(n_iterations_log),
        ctypes.c_int(idx_image),
        ctypes.c_int(idx_chain)
    ])
예제 #5
0
파일: io.py 프로젝트: disselkamp/spirit
def Chain_Write(p_state, filename, idx_image=-1, idx_chain=-1):
    spiritlib.WrapFunction(_Chain_Write, [
        p_state,
        ctypes.c_char_p(filename.encode('utf-8')), idx_image, idx_chain
    ])