PACS System 0.1.0
PACS DICOM system library
Loading...
Searching...
No Matches
wsi_storage.cpp
Go to the documentation of this file.
1// BSD 3-Clause License
2// Copyright (c) 2021-2025, 🍀☀🌕🌥 🌊
3// See the LICENSE file in the project root for full license information.
4
13
15
16std::vector<std::string> get_wsi_storage_sop_classes() {
17 return {
18 std::string(wsi_image_storage_uid),
19 };
20}
21
22bool is_wsi_storage_sop_class(std::string_view uid) noexcept {
23 return uid == wsi_image_storage_uid;
24}
25
26bool is_valid_wsi_photometric(std::string_view value) noexcept {
27 return value == "RGB" || value == "YBR_FULL_422" ||
28 value == "YBR_ICT" || value == "YBR_RCT" ||
29 value == "MONOCHROME2";
30}
31
32} // namespace kcenon::pacs::services::sop_classes
bool is_wsi_storage_sop_class(std::string_view uid) noexcept
Check if a SOP Class UID is a WSI Storage SOP Class.
bool is_valid_wsi_photometric(std::string_view value) noexcept
Check if photometric interpretation is valid for WSI.
constexpr std::string_view wsi_image_storage_uid
VL Whole Slide Microscopy Image Storage SOP Class UID.
Definition wsi_storage.h:35
std::vector< std::string > get_wsi_storage_sop_classes()
Get all WSI Storage SOP Class UIDs.
std::string_view uid
VL Whole Slide Microscopy Image Storage SOP Class.