00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #ifndef DIMO1IMG_H
00031 #define DIMO1IMG_H
00032
00033 #include "dcmtk/config/osconfig.h"
00034
00035 #include "dcmtk/dcmimgle/dimoimg.h"
00036
00037
00038
00039
00040
00041
00044 class DiMono1Image
00045 : public DiMonoImage
00046 {
00047
00048 public:
00049
00055 DiMono1Image(const DiDocument *docu,
00056 const EI_Status status);
00057
00060 virtual ~DiMono1Image();
00061
00065 virtual EP_Interpretation getInternalColorModel() const
00066 {
00067 return EPI_Monochrome1;
00068 }
00069
00079 virtual const void *getOutputData(const unsigned long frame,
00080 const int bits,
00081 const int planar = 0);
00082
00094 virtual int getOutputData(void *buffer,
00095 const unsigned long size,
00096 const unsigned long frame,
00097 const int bits,
00098 const int planar = 0);
00099
00107 DiImage *createImage(const unsigned long fstart,
00108 const unsigned long fcount) const;
00109
00130 DiImage *createScale(const signed long left_pos,
00131 const signed long top_pos,
00132 const unsigned long clip_width,
00133 const unsigned long clip_height,
00134 const unsigned long scale_width,
00135 const unsigned long scale_height,
00136 const int interpolate,
00137 const int aspect,
00138 const Uint16 pvalue) const;
00139
00147 DiImage *createFlip(const int horz,
00148 const int vert) const;
00149
00156 DiImage *createRotate(const int degree) const;
00157
00167 DiImage *createMono(const double dummy1,
00168 const double dummy2,
00169 const double dummy3) const;
00170
00171
00172 protected:
00173
00180 DiMono1Image(const DiMonoImage *image,
00181 const unsigned long fstart,
00182 const unsigned long fcount);
00183
00203 DiMono1Image(const DiMonoImage *image,
00204 const signed long left_pos,
00205 const signed long top_pos,
00206 const Uint16 src_cols,
00207 const Uint16 src_rows,
00208 const Uint16 dest_cols,
00209 const Uint16 dest_rows,
00210 const int interpolate = 0,
00211 const int aspect = 0,
00212 const Uint16 pvalue = 0);
00213
00220 DiMono1Image(const DiMonoImage *image,
00221 const int horz,
00222 const int vert);
00223
00229 DiMono1Image(const DiMonoImage *image,
00230 const int degree);
00231 };
00232
00233
00234 #endif
00235
00236
00237
00238
00239
00240
00241
00242
00243
00244
00245
00246
00247
00248
00249
00250
00251
00252
00253
00254
00255
00256
00257
00258
00259
00260
00261
00262
00263
00264
00265
00266
00267
00268
00269
00270
00271
00272
00273
00274
00275
00276
00277
00278
00279
00280
00281
00282
00283
00284
00285
00286
00287
00288
00289
00290
00291
00292
00293
00294
00295
00296
00297
00298
00299
00300
00301
00302
00303