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


1.2
date	95.01.09.18.11.58;	author rjj;	state Exp;
branches;
next	1.1;

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


desc
@Initial check in of histogram-iter files
@


1.2
log
@Added standard header, corrected several comments, fixed return value.
@
text
@// closure-histogram.c  Section: 9.3 Histogram & 9.4 Cumulative Histogram
//      Copyright 1994, Center for Computer Vision and Visualization,
//      University of Florida.  All rights reserved.
//
// Force the creation of all reasonable histogram<P,T> functions.
//
// This program is NEVER mean to be executed.  It\'s sole purpose
//      is to force the instantiation of the related .o files
// It only seems reasonable to force instantiation for  IDI & UDI images
//      FDI\'s are conceivable, but would really require a FloatPointSet.
//      BDI\'s are also conceivable, however I would have to special case
//      them, because we do not have IA_Point<IA_Bit> type points.
// NOTE: histogram( BDI ) == sum( BDI ).


#include "ia.h"
#include "IntDI.h"
#include "FloatDI.h"
#include "UcharDI.h"

#include "histogram.h"


int  main() {
    // Never run this program...
    ia_throw( IA::INVALID_OPERATION, __FILE__, __LINE__ );

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

    IA_Image<IA_Point<int>,int>  h;

    h = histogram( a );
    h = cumulative_histogram( a );

    IA_Image<IA_Point<int>,float>  nh;

    nh = normalized_histogram( a );
    nh = normalized_cumulative_histogram( a );

    IA_Image<IA_Point<int>,int> b(a);
    h = histogram( b );
    h = cumulative_histogram( b );

    nh = normalized_histogram( b );
    nh = normalized_cumulative_histogram( b );

    return 0;
}
@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
// closure.c
d5 1
a5 1
// Force the creation of all reasonable histogram-iter<P,T> functions.
d9 1
a9 1
// It only seems sense to force instantiation for  IDI & UDI images
d11 3
a13 2
//      BDI\'s are also conceivable, I would special case them, because
//      we do not have IA_Point<IA_Bit> type points.
d24 1
a24 2
void
main() {
d47 2
@
