00001 /* 00002 * 00003 * Copyright (C) 2002-2010, OFFIS e.V. 00004 * All rights reserved. See COPYRIGHT file for details. 00005 * 00006 * This software and supporting documentation were developed by 00007 * 00008 * OFFIS e.V. 00009 * R&D Division Health 00010 * Escherweg 2 00011 * D-26121 Oldenburg, Germany 00012 * 00013 * 00014 * Module: dcmimage 00015 * 00016 * Author: Marco Eichelberg 00017 * 00018 * Purpose: class DcmQuantFloydSteinberg 00019 * 00020 * Last Update: $Author: joergr $ 00021 * Update Date: $Date: 2010-10-14 13:16:30 $ 00022 * CVS/RCS Revision: $Revision: 1.7 $ 00023 * Status: $State: Exp $ 00024 * 00025 * CVS/RCS Log at end of file 00026 * 00027 */ 00028 00029 00030 #ifndef DIQUANT_H 00031 #define DIQUANT_H 00032 00033 #include "dcmtk/config/osconfig.h" 00034 #include "dcmtk/ofstd/ofcond.h" /* for OFCondition */ 00035 #include "dcmtk/dcmdata/dctypes.h" /* for Uint32 etc. */ 00036 #include "dcmtk/dcmimage/diqttype.h" /* for enums */ 00037 #include "dcmtk/ofstd/ofstring.h" /* for class OFString */ 00038 00039 00040 class DicomImage; 00041 class DcmItem; 00042 class DcmTagKey; 00043 00044 00045 class DcmQuant 00046 { 00047 public: 00048 00070 static OFCondition createPaletteColorImage( 00071 DicomImage& sourceImage, 00072 DcmItem& target, 00073 OFBool writeAsOW, 00074 OFBool write16BitEntries, 00075 OFBool floydSteinberg, 00076 Uint32 numberOfColors, 00077 OFString& description, 00078 DcmLargestDimensionType largeType = DcmLargestDimensionType_default, 00079 DcmRepresentativeColorType repType = DcmRepresentativeColorType_default); 00080 00087 static OFCondition updateDerivationDescription(DcmItem *dataset, const char *description); 00088 00089 }; 00090 00091 00092 #endif 00093 00094 00095 /* 00096 * CVS/RCS Log: 00097 * $Log: diquant.h,v $ 00098 * Revision 1.7 2010-10-14 13:16:30 joergr 00099 * Updated copyright header. Added reference to COPYRIGHT file. 00100 * 00101 * Revision 1.6 2009-10-13 14:08:33 uli 00102 * Switched to logging mechanism provided by the "new" oflog module 00103 * 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 */