IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 30, 2005, 1:09:13 PM (21 years ago)
Author:
drobbin
Message:

Updated ImageRow/Col for tail access, PixelCount fxns to allow for differing psMaskType(u8 or u16)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/mathtypes/psVector.c

    r5177 r5213  
    99*  @author Robert DeSonia, MHPCC
    1010*
    11 *  @version $Revision: 1.58 $ $Name: not supported by cvs2svn $
    12 *  @date $Date: 2005-09-29 18:59:01 $
     11*  @version $Revision: 1.59 $ $Name: not supported by cvs2svn $
     12*  @date $Date: 2005-09-30 23:09:13 $
    1313*
    1414*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    608608        f = fdopen(fd, "a+");
    609609        fprintf (f, "vector: %s\n", name);
    610      
     610
    611611        for (int i = 0; i < a[0].n; i++) {
    612612            fprintf (f, "%f\n", p_psVectorGetElementF64(a, i));
     
    974974    type = mask->type.type;
    975975
     976    if (type != PS_TYPE_MASK) {
     977        psError(PS_ERR_BAD_PARAMETER_TYPE, true,
     978                "psVector type does not match the specified psMaskType!\n");
     979        return -1;
     980    }
     981
    976982    switch (type) {
    977983    case PS_TYPE_U8:
     984    case PS_TYPE_U16:
    978985        for (long i = 0; i < mask->n; i++) {
    979             if (mask->data.U8[i] & value) {
     986            if (mask->data.PS_TYPE_MASK_DATA[i] & value) {
    980987                Npixels ++;
    981988            }
     
    986993    case PS_TYPE_S32:
    987994    case PS_TYPE_S64:
    988     case PS_TYPE_U16:
    989995    case PS_TYPE_U32:
    990996    case PS_TYPE_U64:
Note: See TracChangeset for help on using the changeset viewer.