Beispiel #1
0
 /**
  * @brief Determine Spice kernels in an ISIS label
  *
  * This method reads keywords in the Kernels group in the ISIS label hierarchy
  * to find all the pertinent kernel files.  They are found in the Kernels
  * Group.
  *
  * The order listed here is the same as the order specified in the ISIS Spice
  * class at the time this class was written.  When loading and unloading, the
  * order is the same as is read in here.
  *
  * @param pvl Assumed to be a valid ISIS cube label containing the Kernels
  *            group
  */
 void Kernels::Init(Pvl &pvl) {
   UnLoad();
   _kernels.clear();
   addKernels(findKernels(pvl, "TargetPosition"));
   addKernels(findKernels(pvl, "InstrumentPosition"));
   addKernels(findKernels(pvl, "InstrumentPointing"));
   addKernels(findKernels(pvl, "Frame"));
   addKernels(findKernels(pvl, "TargetAttitudeShape"));
   addKernels(findKernels(pvl, "Instrument"));
   addKernels(findKernels(pvl, "InstrumentAddendum"));
   addKernels(findKernels(pvl, "LeapSecond"));
   addKernels(findKernels(pvl, "SpacecraftClock"));
   addKernels(findKernels(pvl, "ShapeModel"));
   addKernels(findKernels(pvl, "Extra"));
   _camVersion = getCameraVersion(pvl);
   return;
 }
Beispiel #2
0
void config_camera()
{
  e_poxxxx_init_cam();

  ve_send_int( getCameraVersion() );

  unsigned sensor_x1 = ve_recv_int();
  unsigned sensor_y1 = ve_recv_int();
  unsigned sensor_width = ve_recv_int();
  unsigned sensor_height = ve_recv_int();
  unsigned zoom_fact_width = ve_recv_int();
  unsigned zoom_fact_height = ve_recv_int();

  int color_mode = ve_recv_int();

  e_poxxxx_config_cam(sensor_x1,
                      sensor_y1,
                      sensor_width,
                      sensor_height,
                      zoom_fact_width,
                      zoom_fact_height,
                      color_mode);
  e_poxxxx_set_mirror(1,1);
  e_poxxxx_write_cam_registers();

  unsigned bytes_per_pixel;
  if(color_mode == GREY_SCALE_MODE)
  {
    bytes_per_pixel = 1;
  }
  else
  {
    bytes_per_pixel = 2;
  }

  G_image_bytes_size = (sensor_width/zoom_fact_width) * (sensor_height/zoom_fact_height) * bytes_per_pixel;

  send_char(1);/* It signalize the end of operation. */
}