Esempio n. 1
0
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
Esempio n. 2
0
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
Esempio n. 3
0
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
Esempio n. 4
0
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
Esempio n. 5
0
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
Esempio n. 6
0
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
Esempio n. 7
0
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]
Esempio n. 8
0
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]