ITK  5.2.0
Insight Toolkit
itkViewImage.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright NumFOCUS
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef itkViewImage_h
19 #define itkViewImage_h
20 #include <cstddef>
21 #include <string>
22 namespace itk
23 {
24 
37 template <typename TImage>
38 class ViewImage
39 {
40 public:
41  using ImageType = TImage;
42 
51  static void
52  View(const ImageType * img,
53  const std::string & windowTitle = "itkView",
54  size_t windowWidth = 600,
55  size_t windowHeight = 600);
56 };
57 } // namespace itk
58 
59 #ifndef ITK_MANUAL_INSTANTIATION
60 # include "itkViewImage.hxx"
61 #endif
62 #endif
itk::ViewImage
Class with static function to visualize an image using just vtk. It accepts 2D and 3D images.
Definition: itkViewImage.h:38
itk::ViewImage::ImageType
TImage ImageType
Definition: itkViewImage.h:41
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::ViewImage::View
static void View(const ImageType *img, const std::string &windowTitle="itkView", vcl_size_t windowWidth=600, vcl_size_t windowHeight=600)