00001 /* 00002 * 00003 * Copyright (C) 2002-2005, OFFIS 00004 * 00005 * This software and supporting documentation were developed by 00006 * 00007 * Kuratorium OFFIS e.V. 00008 * Healthcare Information and Communication Systems 00009 * Escherweg 2 00010 * D-26121 Oldenburg, Germany 00011 * 00012 * THIS SOFTWARE IS MADE AVAILABLE, AS IS, AND OFFIS MAKES NO WARRANTY 00013 * REGARDING THE SOFTWARE, ITS PERFORMANCE, ITS MERCHANTABILITY OR 00014 * FITNESS FOR ANY PARTICULAR USE, FREEDOM FROM ANY COMPUTER DISEASES OR 00015 * ITS CONFORMITY TO ANY SPECIFICATION. THE ENTIRE RISK AS TO QUALITY AND 00016 * PERFORMANCE OF THE SOFTWARE IS WITH THE USER. 00017 * 00018 * Module: dcmimage 00019 * 00020 * Author: Marco Eichelberg 00021 * 00022 * Purpose: class DcmQuantFloydSteinberg 00023 * 00024 * Last Update: $Author: meichel $ 00025 * Update Date: $Date: 2005/12/08 16:01:56 $ 00026 * CVS/RCS Revision: $Revision: 1.5 $ 00027 * Status: $State: Exp $ 00028 * 00029 * CVS/RCS Log at end of file 00030 * 00031 */ 00032 00033 00034 #ifndef DIQUANT_H 00035 #define DIQUANT_H 00036 00037 #include "dcmtk/config/osconfig.h" 00038 #include "dcmtk/ofstd/ofcond.h" /* for OFCondition */ 00039 #include "dcmtk/dcmdata/dctypes.h" /* for Uint32 etc. */ 00040 #include "dcmtk/dcmimage/diqttype.h" /* for enums */ 00041 #include "dcmtk/ofstd/ofstring.h" /* for class OFString */ 00042 00043 00044 class DicomImage; 00045 class DcmItem; 00046 class DcmTagKey; 00047 00048 00049 class DcmQuant 00050 { 00051 public: 00052 00075 static OFCondition createPaletteColorImage( 00076 DicomImage& sourceImage, 00077 DcmItem& target, 00078 OFBool writeAsOW, 00079 OFBool write16BitEntries, 00080 OFBool floydSteinberg, 00081 Uint32 numberOfColors, 00082 OFString& description, 00083 OFBool verbose, 00084 DcmLargestDimensionType largeType = DcmLargestDimensionType_default, 00085 DcmRepresentativeColorType repType = DcmRepresentativeColorType_default); 00086 00093 static OFCondition updateDerivationDescription(DcmItem *dataset, const char *description); 00094 00095 }; 00096 00097 00098 #endif 00099 00100 00101 /* 00102 * CVS/RCS Log: 00103 * $Log: diquant.h,v $ 00104 * Revision 1.5 2005/12/08 16:01:56 meichel 00105 * Changed include path schema for all DCMTK header files 00106 * 00107 * Revision 1.4 2004/08/24 14:55:24 meichel 00108 * Removed duplicate code 00109 * 00110 * Revision 1.3 2003/12/23 12:21:36 joergr 00111 * Updated copyright header. 00112 * 00113 * Revision 1.2 2003/07/04 13:25:40 meichel 00114 * Replaced forward declarations for OFString with explicit includes, 00115 * needed when compiling with HAVE_STD_STRING 00116 * 00117 * Revision 1.1 2002/01/25 13:32:08 meichel 00118 * Initial release of new color quantization classes and 00119 * the dcmquant tool in module dcmimage. 00120 * 00121 * 00122 */