コード例 #1
0
def load_perspective_camera_from_kml_file(NI, NJ, kml_file):
    bstm_batch.init_process("vpglLoadPerspCameraFromKMLFileProcess")
    bstm_batch.set_input_unsigned(0, NI)
    bstm_batch.set_input_unsigned(1, NJ)
    bstm_batch.set_input_string(2, kml_file)
    bstm_batch.run_process()
    (id, type) = bstm_batch.commit_output(0)
    cam = dbvalue(id, type)
    (id, type) = bstm_batch.commit_output(1)
    longitude = bstm_batch.get_output_double(id)
    (id, type) = bstm_batch.commit_output(2)
    latitude = bstm_batch.get_output_double(id)
    (id, type) = bstm_batch.commit_output(3)
    altitude = bstm_batch.get_output_double(id)
    return cam, longitude, latitude, altitude
コード例 #2
0
ファイル: bstm_vil_adaptor.py プロジェクト: jhoare/vxl
def img_sum(img, plane_index=0):
    bstm_batch.init_process("vilImageSumProcess")
    bstm_batch.set_input_from_db(0, img)
    bstm_batch.set_input_unsigned(1, plane_index)
    bstm_batch.run_process()
    (id, type) = bstm_batch.commit_output(0)
    value = bstm_batch.get_output_double(id)
    return value
コード例 #3
0
ファイル: bstm_vil_adaptor.py プロジェクト: rfabbri/vpe
def img_sum(img, plane_index=0):
    bstm_batch.init_process("vilImageSumProcess")
    bstm_batch.set_input_from_db(0, img)
    bstm_batch.set_input_unsigned(1, plane_index)
    bstm_batch.run_process()
    (id, type) = bstm_batch.commit_output(0)
    value = bstm_batch.get_output_double(id)
    return value