IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 15619


Ignore:
Timestamp:
Nov 14, 2007, 12:15:42 PM (18 years ago)
Author:
gusciora
Message:

Cosmetic changes only.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/pmSourceContour.c

    r15562 r15619  
    66 *  @author EAM, IfA: significant modifications.
    77 *
    8  *  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2007-11-10 01:09:20 $
     8 *  @version $Revision: 1.11 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2007-11-14 22:15:42 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    220220psArray *pmSourceContour (psImage *image, int xc, int yc, float threshold)
    221221{
     222    psTrace("psModules.objects", 3, "---- %s() begin ----\n", __func__);
    222223    PS_ASSERT_PTR_NON_NULL(image, NULL);
    223224
    224225    int xR, yR, x0, x1, x0s, x1s;
    225 
    226     psTrace("psModules.objects", 3, "---- %s() begin ----\n", __func__);
    227     PS_ASSERT_PTR_NON_NULL(image, false);
    228 
    229226    int x = xc - image->col0;
    230227    int y = yc - image->row0;
    231228
    232229    // the requested point must be within the contour
    233     if (image->data.F32[y][x] < threshold)
     230    if (image->data.F32[y][x] < threshold) {
    234231        return NULL;
     232    }
    235233
    236234    // Ensure that the starting column is allowable.
    237     if (x < 0)
     235    if (x < 0) {
    238236        return NULL;
    239     if (y < 0)
     237    }
     238    if (y < 0) {
    240239        return NULL;
    241     if (x >= image->numCols)
     240    }
     241    if (x >= image->numCols) {
    242242        return NULL;
    243     if (y >= image->numRows)
     243    }
     244    if (y >= image->numRows) {
    244245        return NULL;
     246    }
    245247
    246248    // Allocate data for x/y pairs.
Note: See TracChangeset for help on using the changeset viewer.