ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkViewImage.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
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 
36 template< typename TImage >
37 class ViewImage
38 {
39 public:
40 
41  using ImageType = TImage;
50  static void View(const ImageType* img,
51  const std::string& windowTitle = "itkView",
52  size_t windowWidth = 600,
53  size_t windowHeight = 600);
54 };
55 }// namespace itk
56 
57 #ifndef ITK_MANUAL_INSTANTIATION
58 #include "itkViewImage.hxx"
59 #endif
60 #endif
static void View(const ImageType *img, const std::string &windowTitle="itkView", vcl_size_t windowWidth=600, vcl_size_t windowHeight=600)
TImage ImageType
Definition: itkViewImage.h:41
Class with static function to visualize an image using just vtk. It accepts 2D and 3D images...
Definition: itkViewImage.h:37