histogram.h
Go to the documentation of this file.00001 /*######################################################################## 00002 00003 The contents of this file are subject to the Mozilla Public License 00004 Version 1.0(the "License"); You may NOT use this file except in 00005 compliance with the License. You may obtain a copy of the License at 00006 http:// www.mozilla.org/MPL/ 00007 Software distributed under the License is distributed on an "AS IS" 00008 basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See 00009 the License for the specific language governing rights and limitations 00010 under the License. 00011 00012 The Initial Developer of the Original Code is Shivang Patel. 00013 00014 Copyright(C) 2002-2003. All Rights Reserved. 00015 00016 Authors: Shivang Patel 00017 Jaap de Haan(jdh) 00018 00019 ########################################################################*/ 00020 00021 #if !defined FVS__HISTOGRAM_HEADER__INCLUDED__ 00022 #define FVS__HISTOGRAM_HEADER__INCLUDED__ 00023 00024 /* basic type definitions */ 00025 #include "fvstypes.h" 00026 00027 00028 #include "image.h" 00029 00035 typedef /*@abstract@*/ /*@mutable@*/ FvsHandle_t FvsHistogram_t; 00036 00037 00042 /*@only@*/ /*@null@*/ FvsHistogram_t HistogramCreate(void); 00043 00044 00050 void HistogramDestroy(/*@only@*/ /*@out@*/ /*@null@*/ FvsHistogram_t histogram); 00051 00052 00058 FvsError_t HistogramReset(FvsHistogram_t histogram); 00059 00060 00067 FvsError_t HistogramCompute(FvsHistogram_t histogram, const FvsImage_t image); 00068 00069 00075 FvsByte_t HistogramGetMean(const FvsHistogram_t histogram); 00076 00077 00083 FvsUint_t HistogramGetVariance(const FvsHistogram_t histogram); 00084 00085 00086 #endif /* FVS__HISTOGRAM_HEADER__INCLUDED__ */ 00087