IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 14, 2004, 9:40:15 AM (22 years ago)
Author:
gusciora
Message:

...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/image/tst_psImageStats02.c

    r887 r1022  
    44    thouroughly tested elsewhere, we will only test psImageStats() with
    55    the PS_STAT_SAMPLE_MEAN here.
     6 
     7    NOTE: After you debug, set CHEBY_X_DIM != CHEBY_Y_DIM.
     8    Also, uses non-square images.
    69 *****************************************************************************/
    710#include <stdio.h>
     
    1114#include "psImage.h"
    1215#include "psImageStats.h"
    13 #define NUM_BINS 20
    14 #define IMAGE_SIZE 10
    15 #define CHEBY_X_DIM 5
     16#define IMAGE_SIZE 3
     17#define CHEBY_X_DIM 3
    1618#define CHEBY_Y_DIM 3
    1719
     
    3840        for (j=0;j<IMAGE_SIZE;j++) {
    3941            tmpImage->data.F32[i][j] = (float) (i + j);
     42            tmpImage->data.F32[i][j] = 4.0;
    4043            outImage->data.F32[i][j] = 0.0;
    41         }
    42     }
    43     for (i=0;i<IMAGE_SIZE;i++) {
    44         for (j=0;j<IMAGE_SIZE;j++) {
    45             printf("(%f, %f)\n", tmpImage->data.F32[i][j],
    46                    outImage->data.F32[i][j]);
    4744        }
    4845    }
     
    7269    for (i=0;i<IMAGE_SIZE;i++) {
    7370        for (j=0;j<IMAGE_SIZE;j++) {
    74             printf("(%f, %f)\n", tmpImage->data.F32[i][j],
     71            printf("pixel[%d][%d] is (%f, %f)\n", i, j,
     72                   tmpImage->data.F32[i][j],
    7573                   outImage->data.F32[i][j]);
    7674        }
Note: See TracChangeset for help on using the changeset viewer.