nonapi
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| nonapi [2022/07/27 18:01] – antreas | nonapi [2022/07/28 12:00] (current) – [Macro] yves | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ===== Image Endpoints ===== | ===== Image Endpoints ===== | ||
| - | == Tile == | + | The following endpoints are available in PMA.core to view Whole Slide Images and its associated labels, thumbnails and macro images. The following list contains the endpoint URL, a brief description and the available parameters for each one. |
| - | /tile: | + | ==== Tile ==== |
| - | /// < | + | **/tile** Renders a square |
| - | /// Renders a square | + | ^Parameter ^Description^ |
| - | /// </ | + | |sessionID|The session id to authenticate with| |
| - | /// <param name="sessionID">The session id to authenticate with.</ | + | |pathOrUid|The path or unique identifier of the image to render or a valid collection config JSON| |
| - | /// <param name="pathOrUid">The path or unique identifier of the image to render or a valid collection config JSON.</ | + | |timeframe|The index of the time frame to render| |
| - | /// <param name="timeframe">The index of the time frame to render.</ | + | |layer|The index of the layer to render| |
| - | /// <param name="layer">The index of the layer to render.</ | + | |channels|Comma separated channel indexes |
| - | /// <param name=" | + | |channelClipping|Min and max limits to clip and scale pixel values. Two values required per channel| |
| - | /// <param name="channelClipping">Min and max limits to clip and scale pixel values. Two values required per channel.</ | + | |gamma|Gamma values for each channel. One value required per channel| |
| - | /// <param name="gamma">Gamma values for each channgel. One value required per channel | + | |x|The x index of the tile| |
| - | /// <param name="x">The x index of the tile.</ | + | |y|The y index of the tile| |
| - | /// <param name="y">The y index of the tile.</ | + | |z|The z index of the tile| |
| - | /// <param name="z">The z index of the tile.</ | + | |cache|//Optional// parameter that tells the renderer whether or not to use the cache to fetch the tile| |
| - | /// <param name=" | + | |format|//Optional// resulting image format. Valid values are JPG, JPEG and PNG| |
| - | /// <param name=" | + | |quality|//Optional// quality parameter used only for the jpeg format| |
| - | /// <param name=" | + | |postGamma|//Optional// gamma value to apply as post processing| |
| - | /// <param name=" | + | |brightness|//Optional// brightness value to apply as post processing| |
| - | /// <param name=" | + | |contrast|//Optional// contrast value to apply as post processing| |
| - | /// <param name="contrast"> | + | **Returns** |
| - | /// < | + | |
| - | == Region == | + | ==== Region |
| - | /region | + | **/region** Renders a region of a slide |
| + | ^Parameter ^Description^ | ||
| + | |sessionID|The session id to authenticate with| | ||
| + | |pathOrUid|The path or unique identifier of the image to render| | ||
| + | |timeframe|The index of the time frame to render| | ||
| + | |layer|The index of the layer to render| | ||
| + | |channels|Comma separated channel indexes to render| | ||
| + | |x|The x coordinate of the image to render| | ||
| + | |y|The y coordinate of the image to render| | ||
| + | |width|The width of the region to render| | ||
| + | |height|The height of the region to render| | ||
| + | |scale|The factor to scale the rendered region by| | ||
| + | |channelClipping|Min and max limits to clip and scale pixel values. Two values required per channel.| | ||
| + | |gamma|Gamma values for each channel. One value required per channel | | ||
| + | |drawScaleBar|Draw an accurate scale bar| | ||
| + | |downloadInsteadOfDisplay|Whether or not to download the image or display it in the browser| | ||
| + | |drawFilename|0 do not draw, 1 draw filename on top, 2 draw on bottom| | ||
| + | |format|// | ||
| + | |quality|// | ||
| + | |annotationsLayerType|A comma separated list of extra annotations layer to render| | ||
| + | |rotation|Rotation angle in degrees| | ||
| + | |flipHorizontal|Whether to flip region horizontally| | ||
| + | |flipVertical|Whether to flip the region vertically| | ||
| + | |dpi|// | ||
| + | |postGamma|// | ||
| + | |brightness|// | ||
| + | |contrast|// | ||
| + | **Returns** A file stream that contains the rendered | ||
| - | /// < | + | ==== Thumbnail ==== |
| - | /// Renders | + | **/thumbnail** |
| - | /// </ | + | ^Parameter ^Description^ |
| - | /// <param name="sessionID">The session id to authenticate with</ | + | |sessionID|The session id to authenticate with| |
| - | /// <param name="pathOrUid">The path or unique identifier of the image to render</ | + | |pathOrUid|The path or unique identifier of the image to render| |
| - | /// <param name=" | + | |orientation|The orientation |
| - | /// <param name=" | + | |w|Expected output |
| - | /// <param name=" | + | |h|Expected output |
| - | /// <param name=" | + | **Returns** An image |
| - | /// <param name=" | + | |
| - | /// <param name=" | + | |
| - | /// <param name=" | + | |
| - | /// <param name=" | + | |
| - | /// <param name=" | + | |
| - | /// <param name=" | + | |
| - | /// <param name=" | + | |
| - | /// <param name=" | + | |
| - | /// <param name=" | + | |
| - | /// <param name=" | + | |
| - | /// <param name=" | + | |
| - | /// <param name=" | + | |
| - | /// <param name=" | + | |
| - | /// <param name=" | + | |
| - | /// <param name=" | + | |
| - | /// <param name=" | + | |
| - | /// <param name=" | + | |
| - | /// <param name=" | + | |
| - | /// <param name=" | + | |
| - | /// < | + | |
| - | == Thumbnail | + | ==== Macro ==== |
| - | / | + | **/macro** Renders the associated macro of a slide |
| - | + | ||
| - | /// < | + | |
| - | /// Renders the associated Thumbnail of a WSI | + | |
| - | /// </ | + | |
| - | /// <param name=" | + | |
| - | /// <param name=" | + | |
| - | /// <param name=" | + | |
| - | /// <param name=" | + | |
| - | /// <param name=" | + | |
| - | /// < | + | |
| - | + | ||
| - | == Macro == | + | |
| - | /macro | + | |
| - | + | ||
| - | /// < | + | |
| - | /// Renders the associated macro of a WSI | + | |
| - | /// </ | + | |
| - | /// <param name=" | + | |
| - | /// <param name=" | + | |
| - | /// <param name=" | + | |
| - | /// <param name=" | + | |
| - | /// <param name=" | + | |
| - | /// < | + | |
| - | + | ||
| - | == Barcode == | + | |
| - | /barcode | + | |
| - | /// < | + | |
| - | /// Renders the associated barcode of a WSI | + | |
| - | /// </ | + | |
| - | /// <param name=" | + | |
| - | /// <param name=" | + | |
| - | /// <param name=" | + | |
| - | /// <param name=" | + | |
| - | /// <param name=" | + | |
| - | /// < | + | |
| + | ^Parameter ^Description^ | ||
| + | |sessionID|The session id to authenticate with| | ||
| + | |pathOrUid|The path or unique identifier of the image to render| | ||
| + | |orientation|The orientation of the macro (0 = auto; 1 = vertical; 2 = horizontal)| | ||
| + | |w|Expected output width of the macro| | ||
| + | |h|Expected output height of the macro| | ||
| + | **Returns** An image | ||
| + | ==== Barcode ==== | ||
| + | **/ | ||
| + | ^Parameter ^Description^ | ||
| + | |sessionID|The session id to authenticate with| | ||
| + | |pathOrUid|The path or unique identifier of the image to render| | ||
| + | |orientation|The orientation of the barcode (0 = auto; 1 = vertical; 2 = horizontal)| | ||
| + | |w|Expected output width of the barcode| | ||
| + | |h|Expected output height of the barcode| | ||
| + | **Returns** An image | ||
nonapi.1658937680.txt.gz · Last modified: by antreas
