Esempio n. 1
0
def nitf_date_time(image_filename):
    bvxm_batch.init_process("vilNITFDateTimeProcess")
    bvxm_batch.set_input_string(0, image_filename)
    bvxm_batch.run_process()
    (id, type) = bvxm_batch.commit_output(0)
    year = bvxm_batch.get_output_int(id)
    (id, type) = bvxm_batch.commit_output(1)
    month = bvxm_batch.get_output_int(id)
    (id, type) = bvxm_batch.commit_output(2)
    day = bvxm_batch.get_output_int(id)
    (id, type) = bvxm_batch.commit_output(3)
    hour = bvxm_batch.get_output_int(id)
    (id, type) = bvxm_batch.commit_output(4)
    minute = bvxm_batch.get_output_int(id)
    return year, month, day, hour, minute
Esempio n. 2
0
def nitf_date_time(image_filename):
  bvxm_batch.init_process("vilNITFDateTimeProcess");
  bvxm_batch.set_input_string(0,image_filename);
  bvxm_batch.run_process();
  (id,type)=bvxm_batch.commit_output(0);
  year =  bvxm_batch.get_output_int(id);
  (id,type)=bvxm_batch.commit_output(1);
  month =  bvxm_batch.get_output_int(id);
  (id,type)=bvxm_batch.commit_output(2);
  day =  bvxm_batch.get_output_int(id);
  (id,type)=bvxm_batch.commit_output(3);
  hour = bvxm_batch.get_output_int(id);
  (id,type)=bvxm_batch.commit_output(4);
  minute = bvxm_batch.get_output_int(id);
  return year, month, day, hour, minute
Esempio n. 3
0
def arf_stream(file_path):
    bvxm_batch.init_process("bilCreateArfImageIstreamProcess")
    bvxm_batch.set_input_string(0, file_path)
    bvxm_batch.run_process()
    (id, type) = bvxm_batch.commit_output(0)
    stream = dbvalue(id, type)
    (id, type) = bvxm_batch.commit_output(1)
    numImgs = bvxm_batch.get_output_int(id)
    return stream, numImgs
Esempio n. 4
0
def arf_stream(file_path) :
  bvxm_batch.init_process("bilCreateArfImageIstreamProcess")
  bvxm_batch.set_input_string(0,file_path);
  bvxm_batch.run_process();
  (id, type) = bvxm_batch.commit_output(0);
  stream = dbvalue(id, type);
  (id, type) = bvxm_batch.commit_output(1);
  numImgs = bvxm_batch.get_output_int(id);
  return stream, numImgs
Esempio n. 5
0
def bae_raw_stream(file_path, ni=0, nj=0, pixelsize=0):
    bvxm_batch.init_process("bilCreateRawImageIstreamProcess")
    bvxm_batch.set_input_string(0, file_path)
    bvxm_batch.set_input_int(1, ni)
    bvxm_batch.set_input_int(2, nj)
    bvxm_batch.set_input_int(3, pixelsize)
    bvxm_batch.run_process()
    (id, type) = bvxm_batch.commit_output(0)
    stream = dbvalue(id, type)
    (id, type) = bvxm_batch.commit_output(1)
    numImgs = bvxm_batch.get_output_int(id)
    return stream, numImgs
Esempio n. 6
0
def bae_raw_stream(file_path,ni=0,nj=0,pixelsize=0) :
  bvxm_batch.init_process("bilCreateRawImageIstreamProcess")
  bvxm_batch.set_input_string(0,file_path);
  bvxm_batch.set_input_int(1,ni);
  bvxm_batch.set_input_int(2,nj);
  bvxm_batch.set_input_int(3,pixelsize);
  bvxm_batch.run_process();
  (id, type) = bvxm_batch.commit_output(0);
  stream = dbvalue(id, type);
  (id, type) = bvxm_batch.commit_output(1);
  numImgs = bvxm_batch.get_output_int(id);
  return stream, numImgs