예제 #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
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
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