~ubuntu-branches/debian/sid/simpleitk/sid

« back to all changes in this revision

Viewing changes to Code/BasicFilters/json/DisplacementFieldJacobianDeterminantFilter.json

  • Committer: Package Import Robot
  • Author(s): Ghislain Antony Vaillant
  • Date: 2017-11-02 08:49:18 UTC
  • Revision ID: package-import@ubuntu.com-20171102084918-7hs09ih668xq87ej
Tags: upstream-1.0.1
ImportĀ upstreamĀ versionĀ 1.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
{
 
2
  "name" : "DisplacementFieldJacobianDeterminantFilter",
 
3
  "template_code_filename" : "ImageFilter",
 
4
  "template_test_filename" : "ImageFilter",
 
5
  "number_of_inputs" : 1,
 
6
  "pixel_types" : "RealVectorPixelIDTypeList",
 
7
  "filter_type" : "itk::DisplacementFieldJacobianDeterminantFilter< itk::Image< itk::Vector<typename InputImageType::InternalPixelType, InputImageType::ImageDimension>, InputImageType::ImageDimension >, typename InputImageType::InternalPixelType >",
 
8
  "custom_set_input" : "filter->SetInput( GetImageFromVectorImage(const_cast< InputImageType * >(image1.GetPointer())) );",
 
9
  "include_files" : [
 
10
    "itkVector.h",
 
11
    "sitkImageConvert.h"
 
12
  ],
 
13
  "members" : [
 
14
    {
 
15
      "name" : "UseImageSpacing",
 
16
      "type" : "bool",
 
17
      "default" : "true",
 
18
      "briefdescriptionSet" : "",
 
19
      "detaileddescriptionSet" : "Set/Get whether or not the filter will use the spacing of the input image in its calculations",
 
20
      "briefdescriptionGet" : "",
 
21
      "detaileddescriptionGet" : ""
 
22
    },
 
23
    {
 
24
      "name" : "DerivativeWeights",
 
25
      "type" : "double",
 
26
      "dim_vec" : 1,
 
27
      "default" : "std::vector<double>()",
 
28
      "itk_type" : "typename FilterType::WeightsType",
 
29
      "custom_itk_cast" : "if (!this->m_DerivativeWeights.empty()) filter->SetDerivativeWeights( sitkSTLVectorToITK<typename FilterType::WeightsType>( this->m_DerivativeWeights ) );",
 
30
      "briefdescriptionSet" : "",
 
31
      "detaileddescriptionSet" : "Directly Set/Get the array of weights used in the gradient calculations. Note that calling UseImageSpacingOn will clobber these values.",
 
32
      "briefdescriptionGet" : "",
 
33
      "detaileddescriptionGet" : "Directly Set/Get the array of weights used in the gradient calculations. Note that calling UseImageSpacingOn will clobber these values."
 
34
    }
 
35
  ],
 
36
  "measurements" : [],
 
37
  "custom_methods" : [],
 
38
  "tests" : [
 
39
    {
 
40
      "tag" : "2d",
 
41
      "description" : "2D",
 
42
      "settings" : [],
 
43
      "tolerance" : "1e-7",
 
44
      "inputs" : [
 
45
        "Input/displacement.mha"
 
46
      ]
 
47
    },
 
48
    {
 
49
      "tag" : "2d_weights",
 
50
      "description" : "2D with derivative weights",
 
51
      "settings" : [
 
52
        {
 
53
          "parameter" : "DerivativeWeights",
 
54
          "type" : "double",
 
55
          "dim_vec" : 1,
 
56
          "value" : [
 
57
            0.1,
 
58
            10.0
 
59
          ]
 
60
        }
 
61
      ],
 
62
      "tolerance" : "1e-7",
 
63
      "inputs" : [
 
64
        "Input/displacement.mha"
 
65
      ]
 
66
    }
 
67
  ],
 
68
  "briefdescription" : "Computes a scalar image from a vector image (e.g., deformation field) input, where each output scalar at each pixel is the Jacobian determinant of the vector field at that location. This calculation is correct in the case where the vector image is a \"displacement\" from the current location. The computation for the jacobian determinant is: det[ dT/dx ] = det[ I + du/dx ].",
 
69
  "detaileddescription" : "\\par Overview\nThis filter is based on itkVectorGradientMagnitudeImageFilter and supports the m_DerivativeWeights weights for partial derivatives.\n\nNote that the determinant of a zero vector field is also zero, whereas the Jacobian determinant of the corresponding identity warp transformation is 1.0. In order to compute the effective deformation Jacobian determinant 1.0 must be added to the diagonal elements of Jacobian prior to taking the derivative. i.e. det([ (1.0+dx/dx) dx/dy dx/dz ; dy/dx (1.0+dy/dy) dy/dz; dz/dx dz/dy (1.0+dz/dz) ])\n\n\\par Template Parameters (Input and Output)\nThis filter has one required template parameter which defines the input image type. The pixel type of the input image is assumed to be a vector (e.g., itk::Vector , itk::RGBPixel , itk::FixedArray ). The scalar type of the vector components must be castable to floating point. Instantiating with an image of RGBPixel<unsigned short>, for example, is allowed, but the filter will convert it to an image of Vector<float,3> for processing.\n\nThe second template parameter, TRealType, can be optionally specified to define the scalar numerical type used in calculations. This is the component type of the output image, which will be of itk::Vector<TRealType, N>, where N is the number of channels in the multiple component input image. The default type of TRealType is float. For extra precision, you may safely change this parameter to double.\n\nThe third template parameter is the output image type. The third parameter will be automatically constructed from the first and second parameters, so it is not necessary (or advisable) to set this parameter explicitly. Given an M-channel input image with dimensionality N, and a numerical type specified as TRealType, the output image will be of type itk::Image<TRealType, N>.\n\n\\par Filter Parameters\nThe method SetUseImageSpacingOn will cause derivatives in the image to be scaled (inversely) with the pixel size of the input image, effectively taking derivatives in world coordinates (versus isotropic image space). SetUseImageSpacingOff turns this functionality off. Default is UseImageSpacingOn. The parameter UseImageSpacing can be set directly with the method SetUseImageSpacing(bool) .\n\nWeights can be applied to the derivatives directly using the SetDerivativeWeights method. Note that if UseImageSpacing is set to TRUE (ON), then these weights will be overridden by weights derived from the image spacing when the filter is updated. The argument to this method is a C array of TRealValue type.\n\n\\par Constraints\nWe use vnl_det for determinent computation, which only supports square matrices. So the vector dimension of the input image values must be equal to the image dimensions, which is trivially true for a deformation field that maps an n-dimensional space onto itself.\n\nCurrently, dimensions up to and including 4 are supported. This limitation comes from the presence of vnl_det() functions for matrices of dimension up to 4x4.\n\nThe template parameter TRealType must be floating point (float or double) or a user-defined \"real\" numerical type with arithmetic operations defined sufficient to compute derivatives.\n\n\\see Image \n\n\\see Neighborhood \n\n\\see NeighborhoodOperator \n\n\\see NeighborhoodIterator \n\n\\note This class was adapted by \n\n\\author Hans J. Johnson, The University of Iowa from code provided by \n\nTom Vercauteren, INRIA & Mauna Kea Technologies \n\nTorsten Rohlfing, Neuroscience Program, SRI International.",
 
70
  "itk_module" : "ITKDisplacementField",
 
71
  "itk_group" : "DisplacementField"
 
72
}
 
 
b'\\ No newline at end of file'