SlideIO 2.0.0
Open-source library for reading of medical images
Loading...
Searching...
No Matches
slideio_enums.hpp
1// This file is part of slideio project.
2// It is subject to the license terms in the LICENSE file found in the top-level directory
3// of this distribution and at http://slideio.com/license.html.
4#pragma once
5#include <string>
6#include "slideio/base/slideio_base_def.hpp"
7
8namespace slideio
9{
11 enum class Compression
12 {
14 Unknown,
18 Jpeg,
20 JpegXR,
22 Png,
26 LZW,
34 JpegOld,
36 Zlib,
37 JBIG85,
38 JBIG43,
40 NextRLE,
41 PackBits,
42 ThunderScanRLE,
43 RasterPadding,
44 RLE_LW,
45 RLE_HC,
46 RLE_BL,
47 PKZIP,
48 KodakDCS,
50 JBIG,
51 NikonNEF,
52 JBIG2,
54 GIF,
55 BIGGIF,
57 RLE,
58 BMP,
59 JpegLossless,
60 };
61
62 enum class DataType
63 {
64 DT_Byte = 0,
65 DT_Int8 = 1,
66 DT_Int16 = 3,
67 DT_Float16 = 7,
68 DT_Int32 = 4,
69 DT_Float32 = 5,
70 DT_Float64 = 6,
71 DT_UInt16 = 2,
72 DT_UInt32 = 8,
73 DT_Int64 = 9,
74 DT_UInt64 = 10,
75 DT_LastValid = 10,
76 DT_Unknown = 1024,
77 DT_None = 2048
78 };
79
80 enum class MetadataType
81 {
82 Unknown,
83 Text,
84 JSON,
85 XML
86 };
87
88 std::string SLIDEIO_BASE_EXPORTS compressionToString(Compression compression);
89 SLIDEIO_BASE_EXPORTS std::ostream& operator<<(std::ostream& os, Compression compression);
90 SLIDEIO_BASE_EXPORTS std::ostream& operator << (std::ostream& os, const slideio::DataType& dt);
91}
Definition: exceptions.hpp:12
Compression
raster data compression enum
Definition: slideio_enums.hpp:12
@ RLE
Run-length encoding.
@ HuffmanRL
RL-Huffman encoding.
@ JpegOld
Old JPEG compression algorithm.
@ Jpeg
JPEG compression.
@ Jpeg2000
JPEG 2000 compression.
@ GIF
gif image compression
@ CCITT_T4
CCITT T.4 2-Dimensional compression.
@ Uncompressed
Uncompressed data.
@ CCITT_T6
CCITT T.6 2-Dimensional compression.
@ NextRLE
NeXT 2-bit RLE image compression scheme.
@ LZW
Lempel - Ziv - Welch universal lossless data compression algorithm.
@ Zlib
zlib looseless data compression
@ JBIG
JBIG early lossless image compression.
@ JpegXR
JPEG XR compression.
@ Png
PNG compression.