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/imageops/psImageStats.c

    r5137 r5213  
    99 *  @author GLG, MHPCC
    1010 *
    11  *  @version $Revision: 1.81 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2005-09-26 22:35:53 $
     11 *  @version $Revision: 1.82 $ $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
     
    677677
    678678    type = mask->type.type;
     679    if (type != PS_TYPE_MASK) {
     680        psError(PS_ERR_BAD_PARAMETER_TYPE, true,
     681                "psImage type does not match the specified psMaskType!\n");
     682        return -1;
     683    }
    679684
    680685    switch (type) {
    681686    case PS_TYPE_U8:
     687    case PS_TYPE_U16:
    682688        for (long i = x0; i < x1; i++) {
    683689            for (long j = y0; j < y1; j++) {
    684                 if (mask->data.U8[i][j] & value) {
     690                if (mask->data.PS_TYPE_MASK_DATA[i][j] & value) {
    685691                    Npixels ++;
    686692                }
     
    692698    case PS_TYPE_S32:
    693699    case PS_TYPE_S64:
    694     case PS_TYPE_U16:
    695700    case PS_TYPE_U32:
    696701    case PS_TYPE_U64:
Note: See TracChangeset for help on using the changeset viewer.