-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathtest_registrators.py
More file actions
40 lines (26 loc) · 1.18 KB
/
test_registrators.py
File metadata and controls
40 lines (26 loc) · 1.18 KB
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
from registrator_base import RegistratorBase
from brainles_preprocessing.registration.ANTs.ANTs import ANTsRegistrator
from brainles_preprocessing.registration.niftyreg.niftyreg import NiftyRegRegistrator
from brainles_preprocessing.registration.elastix.elastix import ElastixRegistrator
from brainles_preprocessing.registration.greedy.greedy import GreedyRegistrator
import unittest
class TestANTsRegistrator(RegistratorBase, unittest.TestCase):
def get_registrator(self):
return ANTsRegistrator()
def get_method_and_extension(self):
return "ants", "mat"
class TestNiftyRegRegistrator(RegistratorBase, unittest.TestCase):
def get_registrator(self):
return NiftyRegRegistrator()
def get_method_and_extension(self):
return "niftyreg", "txt"
class TestElastixRegistrator(RegistratorBase, unittest.TestCase):
def get_registrator(self):
return ElastixRegistrator()
def get_method_and_extension(self):
return "elastix", "txt"
class TestGreedyRegistrator(RegistratorBase, unittest.TestCase):
def get_registrator(self):
return GreedyRegistrator()
def get_method_and_extension(self):
return "greedy", "mat"