コード例 #1
0
ファイル: bstm_vil_adaptor.py プロジェクト: jhoare/vxl
def image_size(img):
    bstm_batch.init_process("vilImageSizeProcess")
    bstm_batch.set_input_from_db(0, img)
    bstm_batch.run_process()
    (id, type) = bstm_batch.commit_output(0)
    ni = bstm_batch.get_output_unsigned(id)
    (id, type) = bstm_batch.commit_output(1)
    nj = bstm_batch.get_output_unsigned(id)
    return ni, nj
コード例 #2
0
ファイル: bstm_vil_adaptor.py プロジェクト: rfabbri/vpe
def image_size(img):
    bstm_batch.init_process('vilImageSizeProcess')
    bstm_batch.set_input_from_db(0, img)
    bstm_batch.run_process()
    (id, type) = bstm_batch.commit_output(0)
    ni = bstm_batch.get_output_unsigned(id)
    (id, type) = bstm_batch.commit_output(1)
    nj = bstm_batch.get_output_unsigned(id)
    return ni, nj
コード例 #3
0
ファイル: bstm_vil_adaptor.py プロジェクト: jhoare/vxl
def load_image(file_path):
    bstm_batch.init_process("vilLoadImageViewProcess")
    bstm_batch.set_input_string(0, file_path)
    bstm_batch.run_process()
    (id, type) = bstm_batch.commit_output(0)
    (ni_id, ni_type) = bstm_batch.commit_output(1)
    (nj_id, nj_type) = bstm_batch.commit_output(2)
    ni = bstm_batch.get_output_unsigned(ni_id)
    nj = bstm_batch.get_output_unsigned(nj_id)
    img = dbvalue(id, type)
    bstm_batch.remove_data(ni_id)
    bstm_batch.remove_data(nj_id)
    return img, ni, nj
コード例 #4
0
ファイル: bstm_vil_adaptor.py プロジェクト: rfabbri/vpe
def load_image(file_path):
    bstm_batch.init_process("vilLoadImageViewProcess")
    bstm_batch.set_input_string(0, file_path)
    bstm_batch.run_process()
    (id, type) = bstm_batch.commit_output(0)
    (ni_id, ni_type) = bstm_batch.commit_output(1)
    (nj_id, nj_type) = bstm_batch.commit_output(2)
    ni = bstm_batch.get_output_unsigned(ni_id)
    nj = bstm_batch.get_output_unsigned(nj_id)
    img = dbvalue(id, type)
    bstm_batch.remove_data(ni_id)
    bstm_batch.remove_data(nj_id)
    return img, ni, nj
コード例 #5
0
ファイル: bstm_adaptor.py プロジェクト: Skylion007/vxl
def trajectory_size(trajectory):
    bstm_batch.init_process("bstmViewTrajectorySizeProcess")
    bstm_batch.set_input_from_db(0, trajectory)
    bstm_batch.run_process()
    (id, type) = bstm_batch.commit_output(0)
    size = bstm_batch.get_output_unsigned(id)
    bstm_batch.remove_data(id)
    return size
コード例 #6
0
ファイル: bstm_adaptor.py プロジェクト: marcge/vxl
def trajectory_size(trajectory):
  bstm_batch.init_process("bstmViewTrajectorySizeProcess")
  bstm_batch.set_input_from_db(0, trajectory)
  bstm_batch.run_process()
  (id,type) = bstm_batch.commit_output(0)
  size = bstm_batch.get_output_unsigned(id)
  bstm_batch.remove_data(id)
  return size
コード例 #7
0
ファイル: bstm_adaptor.py プロジェクト: Skylion007/vxl
def scene_statistics(scene, cache):
    bstm_batch.init_process("bstmSceneStatisticsProcess")
    bstm_batch.set_input_from_db(0, scene)
    bstm_batch.set_input_from_db(1, cache)
    bstm_batch.run_process()
    (s1_id, s1_type) = bstm_batch.commit_output(0)
    (s2_id, s2_type) = bstm_batch.commit_output(1)
    (s3_id, s3_type) = bstm_batch.commit_output(2)
    s1 = bstm_batch.get_output_float(s1_id)
    s2 = bstm_batch.get_output_float(s2_id)
    s3 = bstm_batch.get_output_unsigned(s3_id)
    return [s1, s2, s3]
コード例 #8
0
ファイル: bstm_adaptor.py プロジェクト: marcge/vxl
def scene_statistics(scene, cache):
    bstm_batch.init_process("bstmSceneStatisticsProcess");
    bstm_batch.set_input_from_db(0, scene );
    bstm_batch.set_input_from_db(1, cache );
    bstm_batch.run_process();
    (s1_id, s1_type) = bstm_batch.commit_output(0);
    (s2_id, s2_type) = bstm_batch.commit_output(1);
    (s3_id, s3_type) = bstm_batch.commit_output(2);
    s1 = bstm_batch.get_output_float(s1_id);
    s2 = bstm_batch.get_output_float(s2_id);
    s3 = bstm_batch.get_output_unsigned(s3_id);
    return [s1,s2,s3]