IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 14, 2008, 11:28:46 AM (18 years ago)
Author:
Paul Price
Message:

Fix to allow an image to have no pixels to inspect/reject.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/imcombine/pmStackReject.c

    r17299 r18508  
    2323    PS_ASSERT_ARRAY_NON_NULL(kernels, NULL);
    2424    PS_ASSERT_ARRAYS_SIZE_EQUAL(subRegions, kernels, NULL);
     25
     26    // Trivial case
     27    if (in->n == 0) {
     28        return psPixelsAllocEmpty(0);
     29    }
    2530
    2631    // Get the original image size
Note: See TracChangeset for help on using the changeset viewer.