head	1.1;
access;
symbols;
locks; strict;
comment	@// @;


1.1
date	95.01.05.03.11.30;	author rjj;	state Exp;
branches;
next	;


desc
@First version of file to be placed under RCS for Histogram Modification
  section.  Previous version have been integrated into fewer files.
@


1.1
log
@Initial revision
@
text
@// test-histo-mod.c     Section: 2.10, Histogram Modification
//      Copyright 1995, Center for Computer Vision and Visualization,
//      University of Florida.  All rights reserved.

#include "histo-mod.h"


int main() {

    IA_Image<IA_Point<int>,u_char>
	a = read_uchar_PGM(cin);

    double a_g1 = min(a), a_gm = max(a);

    IA_Image<IA_Point<int>,float>
	b = uniform_histo_mod( a, a_g1, a_gm );

    IA_Image<IA_Point<int>,u_char>(to_uchar(b)).write_PGM(cout);

    return 0;
}
@
