IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 18375 for trunk/Ohana


Ignore:
Timestamp:
Jun 29, 2008, 3:17:24 PM (18 years ago)
Author:
eugene
Message:

check for complete overlap of current region

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/dvo/ImageOps.c

    r14590 r18375  
    5050    if (selection->useDisplay) {
    5151      if (!FindMosaicForImage (image, Nimage, i)) continue;
     52      // first check if region center is in image
     53      status = RD_to_XY (&X, &Y, Rmid, graph.coords.crval2, &image[i].coords);
     54      if (status && (X >= 0) && (X < image[i].NX) && (Y >= 0) && (Y < image[i].NY)) goto in_region;
     55
    5256      /* project this image to screen display coords */
    5357      x[0] = 0;           y[0] = 0;
Note: See TracChangeset for help on using the changeset viewer.