IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 4, 2006, 3:49:41 PM (20 years ago)
Author:
drobbin
Message:

Edited functions wrt subimage v parent image issue.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/imageops/tst_psImageStats.c

    r6750 r6778  
    634634    }
    635635
     636    //Test a subimage.
     637    reg.y0 = 1;
     638    reg.y1 = 5;
     639    numPix2 = -1;
     640    in2->row0 = 1;
     641    numPix2 = psImageCountPixelMask(in2, reg, 1);
     642    if (numPix2 != 2) {
     643        psError(PS_ERR_BAD_PARAMETER_VALUE, false,
     644                "psImageCountPixelMask returned incorrect pixel count %ld (!=2)\n", numPix2);
     645        return 11;
     646    }
     647
    636648    psFree(in);
    637649    psFree(in2);
Note: See TracChangeset for help on using the changeset viewer.