| @@ 64-81 (lines=18) @@ | ||
| 61 | """ |
|
| 62 | pass |
|
| 63 | ||
| 64 | def setup(self): |
|
| 65 | """ |
|
| 66 | Initial setup of all datasets required as input and output to the |
|
| 67 | plugin. This method is called before the process method in the plugin |
|
| 68 | chain. |
|
| 69 | """ |
|
| 70 | in_dataset, out_dataset = self.get_datasets() |
|
| 71 | ||
| 72 | out_dataset[0].create_dataset(in_dataset[0]) |
|
| 73 | out_dataset[1].create_dataset(in_dataset[1]) |
|
| 74 | ||
| 75 | in_pData, out_pData = self.get_plugin_datasets() |
|
| 76 | ||
| 77 | in_pData[0].plugin_data_setup('SINOGRAM',SINOGRAM) |
|
| 78 | out_pData[0].plugin_data_setup('SINOGRAM','multiple') |
|
| 79 | ||
| 80 | in_pData[1].plugin_data_setup('PROJECTION',SINOGRAM) |
|
| 81 | out_pData[1].plugin_data_setup('SINOGRAM','multiple') |
|
| 82 | ||
| 83 | ||
| 84 | ||
| @@ 42-51 (lines=10) @@ | ||
| 39 | def nOutput_datasets(self): |
|
| 40 | return 2 |
|
| 41 | ||
| 42 | def setup(self): |
|
| 43 | in_dataset, out_dataset = self.get_datasets() |
|
| 44 | out_dataset[0].create_dataset(in_dataset[0]) |
|
| 45 | out_dataset[1].create_dataset(in_dataset[1]) |
|
| 46 | ||
| 47 | in_pData, out_pData = self.get_plugin_datasets() |
|
| 48 | in_pData[0].plugin_data_setup('SINOGRAM', 'single') |
|
| 49 | in_pData[1].plugin_data_setup('SINOGRAM', 'single') |
|
| 50 | out_pData[0].plugin_data_setup('SINOGRAM', 'single') |
|
| 51 | out_pData[1].plugin_data_setup('SINOGRAM', 'single') |
|
| 52 | ||
| 53 | def pre_process(self): |
|
| 54 | pass |
|