 |
iipsrv
1.1
iipsrv is an advanced high-performance feature-rich image server for web-based streamed viewing and zooming of ultra high-resolution images
|
29 #include "Transforms.h"
42 float view_left, view_top, view_width, view_height;
45 unsigned int max_resolutions;
46 unsigned int width, height;
47 unsigned int res_width, res_height;
48 unsigned int min_size;
49 unsigned int max_size;
50 unsigned int requested_width;
51 unsigned int requested_height;
60 void calculateResolution(
unsigned int m,
unsigned int r );
75 std::vector< std::vector<float> >
ctw;
88 view_left = 0.0; view_top = 0.0; view_width = 1.0; view_height = 1.0;
89 resolution = 0; max_resolutions = 0;
90 width = 0; height = 0;
91 res_width = 0; res_height = 0;
92 min_size = 1; max_size = 0;
93 requested_width = 0; requested_height = 0;
99 rotation = 0.0;
flip = 0;
170 requested_height = h;
208 void setImageSize(
unsigned int w,
unsigned int h ){ width = w; height = h; };
float contrast
Requested output format.
Definition: View.h:81
bool maintain_aspect
Flip (1=horizontal, 2=vertical)
Definition: View.h:77
float getScale()
Return the scaling required in case our requested width or height is in between available resolutions...
View()
Whether to perform histogram equalization.
Definition: View.h:87
unsigned int getImageHeight()
Return the image height at our requested resolution.
Definition: View.h:228
int yangle
Horizontal View.
Definition: View.h:66
bool viewPortSet()
Indicate whether the viewport has been set.
unsigned int getResolution()
Return the requested resolution.
unsigned int getViewLeft()
Return the left pixel of the viewport.
bool cmapped
Shading incident light angles (x,y,z)
Definition: View.h:69
ColourSpaces colourspace
Number of quality layers.
Definition: View.h:74
unsigned int getMaxSize()
Get the maximum allowed output size.
Definition: View.h:116
unsigned int getViewHeight()
Return the pixel height of the viewport.
void setMaxSize(unsigned int m)
Set the maximum view port dimension.
Definition: View.h:111
Class to intelligently handle Image Transforms.
Definition: View.h:36
CompressionType output_format
Indicate whether we should embed ICC profiles.
Definition: View.h:80
void setAllowUpscaling(bool upscale)
Set the allow_upscaling flag.
Definition: View.h:121
void setMaxLayers(int l)
Limit the maximum number of quality layers we are allowed to decode.
Definition: View.h:213
void setRequestWidth(unsigned int w)
Set the size of the requested width.
Definition: View.h:157
void setRotation(float r)
Set rotation.
Definition: View.h:252
int layers
Maximum number of quality layers allowed.
Definition: View.h:73
unsigned int getRequestWidth()
Get the size of the requested width.
bool floatProcessing()
Whether view requires floating point processing.
Definition: View.h:259
unsigned int getImageWidth()
Return the image width at our requested resolution.
Definition: View.h:224
unsigned int getRequestHeight()
Get the size of the requested height.
void setMaxResolutions(unsigned int r)
Set the maximum view port dimension.
Definition: View.h:147
int max_layers
Whether to invert colormap.
Definition: View.h:72
bool requireHistogram()
Whether we require a histogram.
Definition: View.h:267
void setViewTop(float y)
Set the top co-ordinate of the viewport.
void setImageSize(unsigned int w, unsigned int h)
Set the source image pixel size.
Definition: View.h:208
void setRequestHeight(unsigned int h)
Set the size of the requested height.
Definition: View.h:169
bool shaded
Vertical View.
Definition: View.h:67
bool allowUpscaling()
Get the allow_upscaling flag.
Definition: View.h:126
bool allow_upscaling
Indicate whether aspect ratio should be maintained.
Definition: View.h:78
unsigned int getViewTop()
Return the top pixel of the viewport.
bool embedICC()
Get the embed_icc flag - disable in case of certain types of processing.
Definition: View.h:138
int shade[3]
Whether to use shading view.
Definition: View.h:68
bool equalization
Gamma adjustment requested by GAM command.
Definition: View.h:83
bool embed_icc
Indicate whether images may be served larger than the source file.
Definition: View.h:79
void setViewHeight(float h)
Set the height co-ordinate of the viewport.
void setEmbedICC(bool embed)
Set the embed_icc flag.
Definition: View.h:132
void setViewLeft(float x)
Set the left co-ordinate of the viewport.
std::vector< std::vector< float > > ctw
Requested colourspace.
Definition: View.h:75
float gamma
Contrast adjustment requested by CNT command.
Definition: View.h:82
int getLayers()
Return the number of layers to decode.
float getRotation()
Get rotation.
Definition: View.h:256
enum cmap_type cmap
Whether to modify colormap.
Definition: View.h:70
int flip
Colour twist matrix.
Definition: View.h:76
void setLayers(int l)
Set the number of quality layers to decode, limiting to our max value.
Definition: View.h:217
unsigned int getViewWidth()
Return the pixel width of the viewport.
bool inverted
colormap
Definition: View.h:71
void setViewWidth(float w)
Set the width co-ordinate of the viewport.