IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 11, 2007, 6:48:31 AM (19 years ago)
Author:
rhl
Message:

Support S32 in psImageConvolveDirect

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/imageops/psImageConvolve.c

    r12741 r13350  
    77/// @author Eugene Magnier, IfA
    88///
    9 /// @version $Revision: 1.51 $ $Name: not supported by cvs2svn $
    10 /// @date $Date: 2007-04-04 22:42:02 $
     9/// @version $Revision: 1.52 $ $Name: not supported by cvs2svn $
     10/// @date $Date: 2007-05-11 16:48:31 $
    1111///
    1212/// Copyright 2004-2007 Institute for Astronomy, University of Hawaii
     
    204204{
    205205    PS_ASSERT_IMAGE_NON_NULL(in, NULL);
    206     PS_ASSERT_IMAGE_TYPE_F32_OR_F64(in, NULL);
     206    if (in->type.type != PS_TYPE_S32 && in->type.type != PS_TYPE_F32 && in->type.type != PS_TYPE_F64) {
     207        psError(PS_ERR_BAD_PARAMETER_TYPE, true,
     208                "Unallowable operation: psImage %s is not of type S32 or F{32,64}.", "in");
     209        return(NULL);
     210    }
    207211    PS_ASSERT_PTR_NON_NULL(kernel, NULL);
    208212    PS_ASSERT_PTR_NON_NULL(kernel->kernel, NULL);
     
    270274
    271275    switch (in->type.type) {
     276        SPATIAL_CONVOLVE_CASE(S32);
    272277        SPATIAL_CONVOLVE_CASE(F32);
    273278        SPATIAL_CONVOLVE_CASE(F64);
Note: See TracChangeset for help on using the changeset viewer.