Skip to content

Commit e7fc882

Browse files
Update ImagePyramid.hpp
1 parent 7807e91 commit e7fc882

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

source/FAST/Data/ImagePyramid.hpp

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ class FAST_EXPORT ImagePyramid : public SpatialDataObject {
3030
* @param width Full width of image pyramid
3131
* @param height Full height of image pyramid
3232
* @param channels Nr of channels of image pyramid (3 == color (RGB), 1 == grayscale)
33+
* @param widthList blablabla
34+
* @param heightList blablabla
3335
* @param patchWidth Width of each patch
3436
* @param patchHeight Height of each patch
3537
* @param compression Compression type to use when storing the data in the TIFF.
@@ -38,16 +40,30 @@ class FAST_EXPORT ImagePyramid : public SpatialDataObject {
3840
* @param dataType Data type
3941
* @return instance
4042
*/
43+
FAST_CONSTRUCTOR(ImagePyramid,
44+
int, width, ,
45+
int, height, ,
46+
int, channels, ,
47+
int, patchWidth, = 256,
48+
int, patchHeight, = 256,
49+
ImageCompression, compression, = ImageCompression::UNSPECIFIED,
50+
int, compressionQuality, = 90,
51+
DataType, dataType, = TYPE_UINT8
52+
);
53+
4154
FAST_CONSTRUCTOR(ImagePyramid,
4255
int, width,,
4356
int, height,,
4457
int, channels,,
58+
VectorXi, widthList,,
59+
VectorXi, heightList,,
4560
int, patchWidth, = 256,
4661
int, patchHeight, = 256,
4762
ImageCompression, compression, = ImageCompression::UNSPECIFIED,
4863
int, compressionQuality, = 90,
4964
DataType, dataType, = TYPE_UINT8
5065
);
66+
5167
#ifndef SWIG
5268
FAST_CONSTRUCTOR(ImagePyramid, openslide_t*, fileHandle,, std::vector<ImagePyramidLevel>, levels,);
5369
FAST_CONSTRUCTOR(ImagePyramid, TIFF*, fileHandle,, std::vector<ImagePyramidLevel>, levels,, int, channels,,bool, isOMETIFF, = false);
@@ -139,6 +155,8 @@ class FAST_EXPORT ImagePyramid : public SpatialDataObject {
139155
float m_decompressionOutputScaleFactor = 1.0f;
140156

141157
float m_magnification = -1.0f;
158+
159+
int buildPyramidLevel(int currentLevel, int currentWidth, int currentHeight, int patchWidth, int patchHeight, uint photometric, uint bitsPerSample, uint samplesPerPixel, TIFF* tiff, ImageCompression compression, int widthThres = 4096, int heightThres = 4096);
142160
};
143161

144162
}

0 commit comments

Comments
 (0)