nonapi
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| nonapi [2022/03/25 09:59] – external edit 127.0.0.1 | nonapi [2022/07/28 12:00] (current) – [Macro] yves | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ===== Root directories | + | ===== Image Endpoints |
| - | In order for PMA.core to show content, you need to set up root directories. A root directory is a starting location from which your various whole slide images will be hosted. | + | 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 reason for working | + | ==== Tile ==== |
| - | * You don't have to navigate through | + | **/tile** Renders a square tile of a slide |
| - | * You can map multiple root directories | + | ^Parameter ^Description^ |
| - | * Swtich out different types of storage without | + | |sessionID|The session id to authenticate |
| + | |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| | ||
| + | |layer|The index of the layer to render| | ||
| + | |channels|Comma separated channel indexes | ||
| + | |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| | ||
| + | |x|The x index of the tile| | ||
| + | |y|The y index of the tile| | ||
| + | |z|The z index of the tile| | ||
| + | |cache|// | ||
| + | |format|// | ||
| + | |quality|// | ||
| + | |postGamma|// | ||
| + | |brightness|// | ||
| + | |contrast|// | ||
| + | **Returns** A file stream that contains | ||
| - | {{ :: | + | ==== 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 region | ||
| - | The concept | + | ==== Thumbnail ==== |
| + | **/ | ||
| + | ^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 thumbnail | ||
| + | |w|Expected output width of the thumbnail| | ||
| + | |h|Expected output height of the thumbnail| | ||
| + | **Returns** An image | ||
| - | ==== Mounting points | + | ==== Macro ==== |
| + | **/macro** Renders the associated macro of a slide | ||
| - | Since PMA.core 2, a root directory is defined by one or more mounting point. This was done to be able to facilitate [[rootdir_geo_replication|geo-replication scenarios]]. | + | ^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 | ||
| - | A mouning point for a root directory may either be a local directory, a UNC share, Azure blob storage, FTP folder, or an Amazon S3 compatible storage. | + | ==== Barcode |
| - | + | **/barcode** Renders | |
| - | {{ :: | + | ^Parameter ^Description^ |
| - | + | |sessionID|The session id to authenticate with| | |
| - | A Mounting point is a further abstraction of the concept "where are my slides stored?" | + | |pathOrUid|The path or unique identifier of the image to render| |
| - | + | |orientation|The orientation of the barcode | |
| - | * [[rootdir_geo_replication|Geo replication]] | + | |w|Expected output width of the barcode| |
| - | * Automatic failover between different storage types. If a network resource is not available, a fallback could be offered to an alternative location (possibly with a reduced or older dataset) | + | |h|Expected output height of the barcode| |
| - | + | **Returns** An image | |
| - | {{ :: | + | |
| - | + | ||
| - | In order to make root directories work, you need to attach at least one mounting point to it. | + | |
| - | + | ||
| - | The mounting point of a root directory refers to the base directories where the system should look into for whole slide images. All the subdirectories of the root directories are exposed by the application and whole slide images that are discovered are advertised. | + | |
| - | + | ||
| - | {{ : | + | |
| - | + | ||
| - | ==== Configuration | + | |
| - | + | ||
| - | **Root directories management** | + | |
| - | + | ||
| - | Root directories can be managed by selecting | + | |
| - | + | ||
| - | {{ : | + | |
| - | + | ||
| - | The list displays all the configured root directories and provides options | + | |
| - | + | ||
| - | * The " | + | |
| - | * The "Path exists" | + | |
| - | + | ||
| - | We have a [[rootdir_config|separate section]] in this wiki that takes you through the different steps that you can take to [[rootdir_config|configure root directories and mounting points]]. | + | |
| - | + | ||
| - | Root-directories can be labeled public or private, which allow you to [[rootdir_security# | + | |
| - | + | ||
| - | ==== Security ==== | + | |
| - | + | ||
| - | Root directories can be either [[rootdir_security# | + | |
| - | + | ||
| - | Who's accessed what (either public or private) folder can be monitored via the Access log tab. | + | |
| - | + | ||
| - | {{ :: | + | |
| - | + | ||
| - | ==== Logging ==== | + | |
| - | + | ||
| - | Apart from manipulating root directories, | + | |
| - | + | ||
| - | You can monitor logs for several kinds of acivity: | + | |
| - | + | ||
| - | {{ : | + | |
| - | + | ||
| - | === Audit trail === | + | |
| - | + | ||
| - | The audit trail tab conbines any operations that were performed on both root directory entries and underlaying mounting point entries. | + | |
| - | + | ||
| - | {{ : | + | |
| - | + | ||
| - | The presented information [[21_cfr_part_11|21 CFR pârt 11 compliant]]. | + | |
| - | + | ||
| - | === Activity log === | + | |
| - | + | ||
| - | In addition to an audit trail, an activity log is available that chronologically tell you which user has been accessing what slides in the root directory: | + | |
| - | + | ||
| - | {{ : | + | |
| - | + | ||
| - | ==== Integrity check ==== | + | |
| - | + | ||
| - | When problems persist over time, a structured and proactive approach is warranted. | + | |
| - | + | ||
| - | When you suspect certain slides in a particular root directory are corrupt, you can run an integrity check on a particular folder: | + | |
| - | + | ||
| - | {{ : | + | |
| - | + | ||
| - | This attempts to read all slides in a folder and reports on the ones that fail. You should then [[format_troubleshoot|try to find out why such slides cannot be read]]. | + | |
| - | + | ||
| - | For problems that only occur occasionally and don't appear to be persistent, [[elmah|Elmah logs]] are available to assist in for ad-hoc troubleshooting. | + | |
nonapi.1648198788.txt.gz · Last modified: by 127.0.0.1
