|
|
| View () |
| | Constructor.
|
| |
| void | setMaxSize (int m) |
| | Set the maximum view port dimension.
|
| |
| int | getMaxSize () |
| | Get the maximum allowed output size.
|
| |
| unsigned int | getMinSize () |
| | Get the minimum allowed output size.
|
| |
| void | setAllowUpscaling (bool upscale) |
| | Set the allow_upscaling flag.
|
| |
| bool | allowUpscaling () |
| | Get the allow_upscaling flag.
|
| |
| void | setMaxICC (int max) |
| | Set the maximum ICC profile size we allow to be embedded.
|
| |
| int | maxICC () |
| | Get the maximum ICC profile size we allow to be embedded - disable if certain processing has been carried out.
|
| |
| void | setMaxResolutions (unsigned int r) |
| | Set the maximum view port dimension.
|
| |
| void | setRequestWidth (unsigned int w) |
| | Set the size of the requested width.
|
| |
| std::vector< unsigned int > | getRequestSize () |
| | Get requested image size.
|
| |
| void | setRequestHeight (unsigned int h) |
| | Set the size of the requested height.
|
| |
| unsigned int | getResolution () |
| | Return the resolution level needed for the requested view.
|
| |
| float | getScale () |
| | Return the scaling required in case our requested width or height is in between available resolutions.
|
| |
| void | setViewLeft (float x) |
| | Set the left co-ordinate of the viewport.
|
| |
| void | setViewTop (float y) |
| | Set the top co-ordinate of the viewport.
|
| |
| void | setViewWidth (float w) |
| | Set the width co-ordinate of the viewport.
|
| |
| void | setViewHeight (float h) |
| | Set the height co-ordinate of the viewport.
|
| |
| std::vector< float > | getViewSize () |
| | Return the view dimensions scaled to the full resolution of the image.
|
| |
| void | setImageSize (unsigned int w, unsigned int h) |
| | Set the source image pixel size.
|
| |
| void | setMaxLayers (int l) |
| | Limit the maximum number of quality layers we are allowed to decode.
|
| |
| void | setLayers (int l) |
| | Set the number of quality layers to decode, limiting to our max value.
|
| |
|
int | getLayers () |
| | Return the number of layers to decode.
|
| |
| unsigned int | getImageWidth () |
| | Return the image width at our requested resolution.
|
| |
| unsigned int | getImageHeight () |
| | Return the image height at our requested resolution.
|
| |
| unsigned int | getViewLeft () |
| | Return the left pixel of the viewport.
|
| |
| unsigned int | getViewTop () |
| | Return the top pixel of the viewport.
|
| |
| unsigned int | getViewWidth () |
| | Return the pixel width of the viewport.
|
| |
| unsigned int | getViewHeight () |
| | Return the pixel height of the viewport.
|
| |
| bool | viewPortSet () |
| | Indicate whether the viewport has been set.
|
| |
| void | setRotation (float r) |
| | Set rotation.
|
| |
| float | getRotation () |
| | Get rotation.
|
| |
|
bool | floatProcessing () |
| | Whether view requires floating point processing.
|
| |
|
bool | requireHistogram () |
| | Whether we require a histogram.
|
| |
|
|
int | xangle |
| | Horizontal View.
|
| |
|
int | yangle |
| | Vertical View.
|
| |
|
bool | shaded |
| | Whether to use shading view.
|
| |
|
int | shade [3] |
| | Shading incident light angles (x,y,z)
|
| |
|
bool | cmapped |
| | Whether to modify colormap.
|
| |
|
enum cmap_type | cmap |
| | colormap
|
| |
|
bool | inverted |
| | Whether to invert colormap.
|
| |
|
int | max_layers |
| | Maximum number of quality layers allowed.
|
| |
|
int | layers |
| | Number of quality layers.
|
| |
|
ColorSpace | colorspace |
| | Requested colorspace.
|
| |
|
std::vector< std::vector< float > > | ctw |
| | Colour twist matrix.
|
| |
|
int | flip |
| | Flip (1=horizontal, 2=vertical)
|
| |
|
bool | maintain_aspect |
| | Indicate whether aspect ratio should be maintained.
|
| |
|
bool | allow_upscaling |
| | Indicate whether images may be served larger than the source file.
|
| |
|
int | max_icc |
| | Maximum ICC profile size we allow to be embedded.
|
| |
|
ImageEncoding | output_format |
| | Requested output format.
|
| |
|
float | contrast |
| | Contrast adjustment requested by CNT command.
|
| |
|
float | gamma |
| | Gamma adjustment requested by GAM command.
|
| |
|
std::vector< float > | convolution |
| | Convolution matrix.
|
| |
|
bool | equalization |
| | Whether to perform histogram equalization.
|
| |
|
bool | minmax |
| | Whether to perform contrast stretching using user-defined min/max.
|
| |
Class to intelligently handle Image Transforms.
| unsigned int View::getResolution |
( |
| ) |
|
Return the resolution level needed for the requested view.
- Returns
- requested resolution level
Calculate the optimal resolution and the size of this resolution for the requested view, taking into account any maximum size settings
References getRequestSize(), and getScale().
Referenced by IIIF::run(), and CVT::send().