nonapi
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| nonapi [2022/08/06 16:58] – created yves | nonapi [2024/06/10 10:57] (current) – angelos | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ===== Image Endpoints ===== | ===== Image Endpoints ===== | ||
| - | 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. | + | The following endpoints are available in PMA.core to view Whole Slide Images and their 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 tile of a slide | **/tile** Renders a square tile of a slide | ||
| ^Parameter ^Description^ | ^Parameter ^Description^ | ||
| - | |sessionID|The session id to authenticate with| | + | |**sessionID**|The session id to authenticate with| |
| - | |pathOrUid|The path or unique identifier of the image to render or a valid collection config JSON| | + | |**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| | + | |**timeframe**|The index of the time frame to render| |
| - | |layer|The index of the layer to render| | + | |**layer**|The index of the layer to render| |
| - | |channels|Comma separated channel indexes to render| | + | |**channels**|Comma separated channel indexes to render| |
| - | |channelClipping|Min and max limits to clip and scale pixel values. Two values required per channel| | + | |**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| | + | |**channelColor**|Comma separated hex AARRGGBB color per fluorescent channel| |
| - | |x|The x index of the tile| | + | |**gamma**|Gamma values for each channel. One value required per channel| |
| - | |y|The y index of the tile| | + | |**x**|The x index of the tile| |
| - | |z|The z index of the tile| | + | |**y**|The y index of the tile| |
| + | |**z**|The z index of the tile| | ||
| |cache|// | |cache|// | ||
| - | |format|// | + | |format|// |
| |quality|// | |quality|// | ||
| |postGamma|// | |postGamma|// | ||
| Line 23: | Line 24: | ||
| |contrast|// | |contrast|// | ||
| **Returns** A file stream that contains the rendered region | **Returns** A file stream that contains the rendered region | ||
| + | |||
| + | **Example** /// | ||
| ==== Region ==== | ==== Region ==== | ||
| **/region** Renders a region of a slide | **/region** Renders a region of a slide | ||
| ^Parameter ^Description^ | ^Parameter ^Description^ | ||
| - | |sessionID|The session | + | |**sessionID**|The session |
| - | |pathOrUid|The path or unique identifier of the image to render| | + | |**pathOrUid**|The path or unique identifier of the image to render| |
| - | |timeframe|The index of the time frame to render| | + | |**timeframe**|The index of the time frame to render| |
| - | |layer|The index of the layer to render| | + | |**layer**|The index of the layer to render| |
| - | |channels|Comma separated channel indexes to render| | + | |**channels**|Comma separated channel indexes to render| |
| - | |x|The x coordinate of the image to render| | + | |**x**|The x coordinate of the image to render| |
| - | |y|The y coordinate of the image to render| | + | |**y**|The y coordinate of the image to render| |
| - | |width|The width of the region to render| | + | |**width**|The width of the region to render| |
| - | |height|The height of the region to render| | + | |**height**|The height of the region to render| |
| - | |scale|The factor to scale the rendered region by| | + | |**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.| | + | |**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 | | + | |**channelColor**|Comma separated hex AARRGGBB color per fluorescent channel| |
| - | |drawScaleBar|Draw an accurate scale bar| | + | |**gamma**|Gamma values for each channel. One value required per channel | |
| - | |downloadInsteadOfDisplay|Whether or not to download the image or display it in the browser| | + | |drawScaleBar|// |
| - | |drawFilename|0 do not draw, 1 draw filename on top, 2 draw on bottom| | + | |downloadInsteadOfDisplay|// |
| - | |format|// | + | |drawFilename|// |
| + | |format|// | ||
| |quality|// | |quality|// | ||
| - | |annotationsLayerType|A comma separated list of extra annotations layer to render| | + | |annotationsLayerType|// |
| - | |rotation|Rotation angle in degrees| | + | |rotation|// |
| - | |flipHorizontal|Whether to flip region horizontally| | + | |flipHorizontal|// |
| - | |flipVertical|Whether to flip the region vertically| | + | |flipVertical|// |
| |dpi|// | |dpi|// | ||
| |postGamma|// | |postGamma|// | ||
| Line 54: | Line 58: | ||
| **Returns** A file stream that contains the rendered region | **Returns** A file stream that contains the rendered region | ||
| + | **Example** /// | ||
| + | |||
| + | In the example request above, the system will render a 1000x1000 pixel portion of the full resolution image and scale it to 100x100 pixels before it returns it to the client. | ||
| ==== Thumbnail ==== | ==== Thumbnail ==== | ||
| **/ | **/ | ||
| ^Parameter ^Description^ | ^Parameter ^Description^ | ||
| - | |sessionID|The session | + | |**sessionID**|The session |
| - | |pathOrUid|The path or unique identifier of the image to render| | + | |**pathOrUid**|The path or unique identifier of the image to render| |
| - | |orientation|The orientation of the thumbnail (0 = auto; 1 = vertical; 2 = horizontal)| | + | |orientation|// |
| - | |w|Expected output width of the thumbnail| | + | |w|// |
| - | |h|Expected output height of the thumbnail| | + | |h|// |
| **Returns** An image | **Returns** An image | ||
| + | |||
| + | |||
| + | **Example** /// | ||
| ==== Macro ==== | ==== Macro ==== | ||
| Line 68: | Line 78: | ||
| ^Parameter ^Description^ | ^Parameter ^Description^ | ||
| - | |sessionID|The session | + | |**sessionID**|The session |
| - | |pathOrUid|The path or unique identifier of the image to render| | + | |**pathOrUid**|The path or unique identifier of the image to render| |
| - | |orientation|The orientation of the macro (0 = auto; 1 = vertical; 2 = horizontal)| | + | |orientation|// |
| - | |w|Expected output width of the macro| | + | |w|// |
| - | |h|Expected output height of the macro| | + | |h|// |
| **Returns** An image | **Returns** An image | ||
| + | |||
| + | **Example** /// | ||
| ==== Barcode ==== | ==== Barcode ==== | ||
| - | **/ | + | **/ |
| ^Parameter ^Description^ | ^Parameter ^Description^ | ||
| - | |sessionID|The session | + | |**sessionID**|The session |
| - | |pathOrUid|The path or unique identifier of the image to render| | + | |**pathOrUid**|The path or unique identifier of the image to render| |
| - | |orientation|The orientation of the barcode (0 = auto; 1 = vertical; 2 = horizontal)| | + | |orientation|// |
| - | |w|Expected output width of the barcode| | + | |w|// |
| - | |h|Expected output height of the barcode| | + | |h|// |
| **Returns** An image | **Returns** An image | ||
| + | |||
| + | **Example** /// | ||
nonapi.1659797894.txt.gz · Last modified: by yves
