Mercurial > hg > orthanc
changeset 4836:ec1e9571b645
document number of dimensions in numpy arrays
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 27 Nov 2021 12:31:51 +0100 |
parents | f3f93695d6df |
children | 8557729ebaa2 |
files | OrthancServer/Sources/OrthancRestApi/OrthancRestResources.cpp |
diffstat | 1 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/OrthancServer/Sources/OrthancRestApi/OrthancRestResources.cpp Sat Nov 27 12:27:01 2021 +0100 +++ b/OrthancServer/Sources/OrthancRestApi/OrthancRestResources.cpp Sat Nov 27 12:31:51 2021 +0100 @@ -1259,7 +1259,8 @@ call.GetDocumentation() .SetTag("Instances") .SetSummary("Decode frame for numpy") - .SetDescription("Decode one frame of interest from the given DICOM instance, for use with numpy in Python") + .SetDescription("Decode one frame of interest from the given DICOM instance, for use with numpy in Python. " + "The numpy array has 3 dimensions: (height, width, color channel).") .SetUriArgument("frame", RestApiCallDocumentation::Type_Number, "Index of the frame (starts at `0`)"); } else @@ -1296,7 +1297,8 @@ call.GetDocumentation() .SetTag("Instances") .SetSummary("Decode instance for numpy") - .SetDescription("Decode the given DICOM instance, for use with numpy in Python"); + .SetDescription("Decode the given DICOM instance, for use with numpy in Python. " + "The numpy array has 4 dimensions: (frame, height, width, color channel)."); } else { @@ -1335,7 +1337,8 @@ call.GetDocumentation() .SetTag("Series") .SetSummary("Decode series for numpy") - .SetDescription("Decode the given DICOM series, for use with numpy in Python"); + .SetDescription("Decode the given DICOM series, for use with numpy in Python. " + "The numpy array has 4 dimensions: (frame, height, width, color channel)."); } else {