Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | Related Pages

diquant.h

00001 /*
00002  *
00003  *  Copyright (C) 2002-2003, 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: joergr $
00025  *  Update Date:      $Date: 2003/12/23 12:21:36 $
00026  *  CVS/RCS Revision: $Revision: 1.3 $
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 "osconfig.h"
00038 #include "ofcond.h"    /* for OFCondition */
00039 #include "dctypes.h"   /* for Uint32 etc. */
00040 #include "diqttype.h"  /* for enums */
00041 #include "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 
00092   static OFCondition newInstance(DcmItem *dataset);
00093 
00098   static OFCondition updateImageType(DcmItem *dataset);
00099 
00106   static OFCondition updateDerivationDescription(DcmItem *dataset, const char *description);
00107 
00115   static OFCondition insertStringIfMissing(DcmItem *dataset, const DcmTagKey& tag, const char *val);
00116 
00127   static OFCondition convertToSecondaryCapture(DcmItem *dataset);
00128 
00129 };
00130 
00131 
00132 #endif
00133 
00134 
00135 /*
00136  * CVS/RCS Log:
00137  * $Log: diquant.h,v $
00138  * Revision 1.3  2003/12/23 12:21:36  joergr
00139  * Updated copyright header.
00140  *
00141  * Revision 1.2  2003/07/04 13:25:40  meichel
00142  * Replaced forward declarations for OFString with explicit includes,
00143  *   needed when compiling with HAVE_STD_STRING
00144  *
00145  * Revision 1.1  2002/01/25 13:32:08  meichel
00146  * Initial release of new color quantization classes and
00147  *   the dcmquant tool in module dcmimage.
00148  *
00149  *
00150  */


Generated on 29 Apr 2005 for OFFIS DCMTK Version 3.5.3 by Doxygen 1.4.2