forked from ProstateBRP/ProstateNav
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvtkZFrameRobotToImageRegistration.h
79 lines (50 loc) · 2.02 KB
/
vtkZFrameRobotToImageRegistration.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
/*==========================================================================
Portions (c) Copyright 2008 Brigham and Women's Hospital (BWH) All Rights Reserved.
See Doc/copyright/copyright.txt
or http://www.slicer.org/copyright/copyright.txt for details.
Program: 3D Slicer
Module: $HeadURL: http://svn.slicer.org/Slicer3/trunk/Modules/OpenIGTLinkIF/vtkIGTLToMRMLBase.h $
Date: $Date: 2009-01-05 13:28:20 -0500 (Mon, 05 Jan 2009) $
Version: $Revision: 8267 $
==========================================================================*/
/*
* ZFrame Fiducial Registration Algorithm
* The method and code is originally developoed by Simon DiMaio from BWH.
*/
#ifndef __vtkZFrameRobotToImageRegistration_h
#define __vtkZFrameRobotToImageRegistration_h
#include "vtkObject.h"
#include "vtkProstateNavWin32Header.h"
#include "vtkRobotToImageRegistration.h"
#include <vector>
#include <string>
#include "ZLinAlg.h"
#include "newmatap.h"
#include "newmat.h"
class VTK_PROSTATENAV_EXPORT vtkZFrameRobotToImageRegistration : public vtkRobotToImageRegistration
{
public:
static vtkZFrameRobotToImageRegistration *New();
vtkTypeRevisionMacro(vtkZFrameRobotToImageRegistration,vtkRobotToImageRegistration);
void PrintSelf(ostream& os, vtkIndent indent);
virtual int DoRegistration();
vtkSetObjectMacro( ZFrameBaseOrientation, vtkMatrix4x4 );
vtkGetObjectMacro( ZFrameBaseOrientation, vtkMatrix4x4 );
void SetSliceRange(int param1, int param2);
protected:
vtkZFrameRobotToImageRegistration();
~vtkZFrameRobotToImageRegistration();
// Methods related to finding the fiducial artifacts in the MR images.
void Init(int xsize, int ysize);
int ZFrameRegistration(vtkMRMLScalarVolumeNode* volumeNode,
vtkMRMLLinearTransformNode* transformNode, int slindex_s, int slindex_e);
protected:
vtkMatrix4x4 * ZFrameBaseOrientation;
short *InputImage;
//BTX
Matrix SourceImage;
//ETX
int SliceRangeLow;
int SliceRangeHigh;
};
#endif //__vtkZFrameRobotToImageRegistration_h