IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 8, 2006, 4:37:08 PM (20 years ago)
Author:
jhoblitt
Message:

normalize psTrace() facility names

File:
1 edited

Legend:

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

    r6943 r8246  
    66 *  @author EAM, IfA: significant modifications.
    77 *
    8  *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2006-04-21 21:27:04 $
     8 *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2006-08-09 02:37:08 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    4949{
    5050
    51     psTrace(__func__, 4, "---- %s() begin ----\n", __func__);
     51    psTrace("psModules.objects", 4, "---- %s() begin ----\n", __func__);
    5252
    5353    // We define variables incr and lastColumn so that we can use the same loop
     
    7070        float value = image->data.F32[y][subCol];
    7171        if (value <= threshold) {
    72             psTrace(__func__, 4, "---- %s() end ----\n", __func__);
     72            psTrace("psModules.objects", 4, "---- %s() end ----\n", __func__);
    7373            return (subCol);
    7474        }
    7575        subCol += incr;
    7676    }
    77     psTrace(__func__, 4, "---- %s() end ----\n", __func__);
     77    psTrace("psModules.objects", 4, "---- %s() end ----\n", __func__);
    7878    return (lastColumn);
    7979}
     
    8989{
    9090
    91     psTrace(__func__, 4, "---- %s() begin ----\n", __func__);
     91    psTrace("psModules.objects", 4, "---- %s() begin ----\n", __func__);
    9292
    9393    // We define variables incr and lastColumn so that we can use the same loop
     
    109109        float value = image->data.F32[y][subCol];
    110110        if (value >= threshold) {
    111             psTrace(__func__, 4, "---- %s() end ----\n", __func__);
     111            psTrace("psModules.objects", 4, "---- %s() end ----\n", __func__);
    112112            if (subCol == x) {
    113113                return (subCol);
     
    117117        subCol += incr;
    118118    }
    119     psTrace(__func__, 4, "---- %s() end ----\n", __func__);
     119    psTrace("psModules.objects", 4, "---- %s() end ----\n", __func__);
    120120    return (lastColumn);
    121121}
     
    139139                       psU32 dir)
    140140{
    141     psTrace(__func__, 4, "---- %s() begin ----\n", __func__);
     141    psTrace("psModules.objects", 4, "---- %s() begin ----\n", __func__);
    142142    //
    143143    // Convert coords to subImage space.
     
    149149    if (!((0 <= subCol) && (subCol < source->pixels->numCols))) {
    150150        psError(PS_ERR_UNKNOWN, true, "Starting column outside subImage range");
    151         psTrace(__func__, 4, "---- %s(NAN) end ----\n", __func__);
     151        psTrace("psModules.objects", 4, "---- %s(NAN) end ----\n", __func__);
    152152        return(NAN);
    153153    }
    154154    if (!((0 <= subRow) && (subRow < source->pixels->numRows))) {
    155         psTrace(__func__, 4, "---- %s(NAN) end ----\n", __func__);
     155        psTrace("psModules.objects", 4, "---- %s(NAN) end ----\n", __func__);
    156156        psError(PS_ERR_UNKNOWN, true, "Starting row outside subImage range");
    157157        return(NAN);
     
    162162    psF32 oldValue = pmModelEval(source->modelEXT, source->pixels, subCol, subRow);
    163163    if (oldValue == level) {
    164         psTrace(__func__, 4, "---- %s() end ----\n", __func__);
     164        psTrace("psModules.objects", 4, "---- %s() end ----\n", __func__);
    165165        return(((psF32) (subCol + source->pixels->col0)));
    166166    }
     
    184184        psF32 newValue = pmModelEval(source->modelEXT, source->pixels, subCol, subRow);
    185185        if (oldValue == level) {
    186             psTrace(__func__, 4, "---- %s() end ----\n", __func__);
     186            psTrace("psModules.objects", 4, "---- %s() end ----\n", __func__);
    187187            return((psF32) (subCol + source->pixels->col0));
    188188        }
     
    190190        if ((newValue <= level) && (level <= oldValue)) {
    191191            // This is simple linear interpolation.
    192             psTrace(__func__, 4, "---- %s() end ----\n", __func__);
     192            psTrace("psModules.objects", 4, "---- %s() end ----\n", __func__);
    193193            return( ((psF32) (subCol + source->pixels->col0)) + ((psF32) incr) * ((level - newValue) / (oldValue - newValue)) );
    194194        }
     
    196196        if ((oldValue <= level) && (level <= newValue)) {
    197197            // This is simple linear interpolation.
    198             psTrace(__func__, 4, "---- %s() end ----\n", __func__);
     198            psTrace("psModules.objects", 4, "---- %s() end ----\n", __func__);
    199199            return( ((psF32) (subCol + source->pixels->col0)) + ((psF32) incr) * ((level - oldValue) / (newValue - oldValue)) );
    200200        }
     
    203203    }
    204204
    205     psTrace(__func__, 4, "---- %s(NAN) end ----\n", __func__);
     205    psTrace("psModules.objects", 4, "---- %s(NAN) end ----\n", __func__);
    206206    return(NAN);
    207207}
     
    215215    int xR, yR, x0, x1, x0s, x1s;
    216216
    217     psTrace(__func__, 3, "---- %s() begin ----\n", __func__);
     217    psTrace("psModules.objects", 3, "---- %s() begin ----\n", __func__);
    218218    PS_ASSERT_PTR_NON_NULL(image, false);
    219219
     
    327327    tmpArray->data[0] = (psPtr *) xVec;
    328328    tmpArray->data[1] = (psPtr *) yVec;
    329     psTrace(__func__, 3, "---- %s() end ----\n", __func__);
     329    psTrace("psModules.objects", 3, "---- %s() end ----\n", __func__);
    330330    return(tmpArray);
    331331}
     
    348348                               psF32 level)
    349349{
    350     psTrace(__func__, 3, "---- %s() begin ----\n", __func__);
     350    psTrace("psModules.objects", 3, "---- %s() begin ----\n", __func__);
    351351    PS_ASSERT_PTR_NON_NULL(source, false);
    352352    PS_ASSERT_PTR_NON_NULL(image, false);
     
    379379            psFree(xVec);
    380380            psFree(yVec);
    381             psTrace(__func__, 3, "---- %s(NULL) end ----\n", __func__);
     381            psTrace("psModules.objects", 3, "---- %s(NULL) end ----\n", __func__);
    382382            return(NULL);
    383383            //psLogMsg(__func__, PS_LOG_WARN, "WARNING: Could not find contour edge (NAN)\n");
     
    392392            psFree(xVec);
    393393            psFree(yVec);
    394             psTrace(__func__, 3, "---- %s(NULL) end ----\n", __func__);
     394            psTrace("psModules.objects", 3, "---- %s(NULL) end ----\n", __func__);
    395395            return(NULL);
    396396            //psLogMsg(__func__, PS_LOG_WARN, "WARNING: Could not find contour edge (NAN)\n");
    397397        }
    398         psTrace(__func__, 4, "The intercepts are (%.2f, %.2f)\n", leftIntercept, rightIntercept);
     398        psTrace("psModules.objects", 4, "The intercepts are (%.2f, %.2f)\n", leftIntercept, rightIntercept);
    399399        xVec->data.F32[row+xVec->n] = ((psF32) source->pixels->col0) + rightIntercept;
    400400
     
    417417            psFree(xVec);
    418418            psFree(yVec);
    419             psTrace(__func__, 3, "---- %s(NULL) end ----\n", __func__);
     419            psTrace("psModules.objects", 3, "---- %s(NULL) end ----\n", __func__);
    420420            return(NULL);
    421421            //psLogMsg(__func__, PS_LOG_WARN, "WARNING: Could not find contour edge (NAN)\n");
     
    429429            psFree(xVec);
    430430            psFree(yVec);
    431             psTrace(__func__, 3, "---- %s(NULL) end ----\n", __func__);
     431            psTrace("psModules.objects", 3, "---- %s(NULL) end ----\n", __func__);
    432432            return(NULL);
    433433            //psLogMsg(__func__, PS_LOG_WARN, "WARNING: Could not find contour edge (NAN)\n");
     
    447447    tmpArray->data[0] = (psPtr *) yVec;
    448448    tmpArray->data[1] = (psPtr *) xVec;
    449     psTrace(__func__, 3, "---- %s() end ----\n", __func__);
     449    psTrace("psModules.objects", 3, "---- %s() end ----\n", __func__);
    450450    return(tmpArray);
    451451}
Note: See TracChangeset for help on using the changeset viewer.