IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 9, 2004, 1:34:58 PM (22 years ago)
Author:
desonia
Message:

cleanup of some indent-induced madness.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/image/psImageExtraction.c

    r1407 r1440  
    1010*  @author Robert DeSonia, MHPCC
    1111*
    12 *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2004-08-07 00:06:06 $
     12*  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2004-08-09 23:34:58 $
    1414*
    1515*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2323#include "psError.h"
    2424
    25 psImage *psImageSubset(psImage * out,
    26                        psImage * image,
     25psImage* psImageSubset(psImage* out,
     26                       psImage* image,
    2727                       unsigned int numCols, unsigned int numRows, unsigned int col0, unsigned int row0)
    2828{
     
    8383    *(int *)&out->row0 = row0;
    8484    *(int *)&out->col0 = col0;
    85     *(psImage **) & out->parent = (psImage *) image;
     85    *(psImage* *) & out->parent = (psImage* ) image;
    8686
    8787    // add output image as a child of the input
    8888    // image.
    8989    image->nChildren++;
    90     image->children = (psImage **) psRealloc(image->children, image->nChildren * sizeof(psImage *));
     90    image->children = (psImage* *) psRealloc(image->children, image->nChildren * sizeof(psImage* ));
    9191    image->children[image->nChildren - 1] = out;
    9292
     
    101101}
    102102
    103 psImage *psImageCopy(psImage * restrict output, const psImage * input, psElemType type)
     103psImage* psImageCopy(psImage* restrict output, const psImage* input, psElemType type)
    104104{
    105105    psElemType inDatatype;
     
    242242}
    243243
    244 psVector *psImageSlice(psVector * out,
    245                        psVector * slicePositions,
    246                        const psImage * restrict in,
    247                        const psImage * restrict mask,
     244psVector* psImageSlice(psVector* out,
     245                       psVector* slicePositions,
     246                       const psImage* restrict in,
     247                       const psImage* restrict mask,
    248248                       unsigned int maskVal,
    249249                       unsigned int col,
    250250                       unsigned int row,
    251251                       unsigned int numCols,
    252                        unsigned int numRows, psImageCutDirection direction, const psStats * stats)
     252                       unsigned int numRows, psImageCutDirection direction, const psStats* stats)
    253253{
    254254    double statVal;
    255     psStats *myStats;
     255    psStats* myStats;
    256256    psElemType type;
    257257    int inRows;
    258258    int inCols;
    259259    int delta = 1;
    260     psF64 *outData;
     260    psF64* outData;
    261261
    262262    if (in == NULL || in->data.V == NULL) {
     
    328328
    329329    if (direction == PS_CUT_X_POS || direction == PS_CUT_X_NEG) {
    330         psVector *imgVec = psVectorAlloc(numRows, type);
    331         psVector *maskVec = NULL;
    332         psMaskType *maskData = NULL;
    333         psU32 *outPosition = NULL;
     330        psVector* imgVec = psVectorAlloc(numRows, type);
     331        psVector* maskVec = NULL;
     332        psMaskType* maskData = NULL;
     333        psU32* outPosition = NULL;
    334334
    335335        // recycle output to make a proper
     
    362362                if (maskVec != NULL) { \
    363363                    maskVecData = maskVec->data.V; \
    364                     maskData = (psMaskType*)(mask->data.V[row]) + col + c; \
     364                    maskData = (psMaskType* )(mask->data.V[row]) + col + c; \
    365365                } \
    366366                for (int r=0;r<numRows;r++) { \
     
    417417        // Y
    418418        // direction
    419         psVector *imgVec = NULL;
    420         psVector *maskVec = NULL;
     419        psVector* imgVec = NULL;
     420        psVector* maskVec = NULL;
    421421        int elementSize = PSELEMTYPE_SIZEOF(type);
    422         psU32 *outPosition = NULL;
     422        psU32* outPosition = NULL;
    423423
    424424        // fill in psVectors to fake out the
Note: See TracChangeset for help on using the changeset viewer.