324b3a52837f46aac644a31eecfa361d728775de,niftynet/contrib/sampler_pairwise/sampler_pairwise.py,PairwiseSampler,get_pairwise_inputs,#PairwiseSampler#,66

Before Change


    def get_pairwise_inputs(self, image_id):
        fixed_image, _ = self._get_image("fixed_image", image_id)
        fixed_label, _ = self._get_image("fixed_label", image_id)
        moving_image, _ = self._get_image("moving_image", image_id)
        moving_label, _ = self._get_image("moving_label", image_id)
        images = [fixed_image, fixed_label, moving_image, moving_label]
        images = np.concatenate(images, axis=-1)
        images_shape = np.asarray(images.shape).T.astype(np.int32)

After Change



        // fetch moving image
        moving_inputs = []
        moving_inputs.append(self._get_image("moving_image", image_id)[0])
        moving_inputs.append(self._get_image("moving_label", image_id)[0])
        moving_inputs = np.concatenate(moving_inputs, axis=-1)
        moving_shape = np.asarray(moving_inputs.shape).T.astype(np.int32)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: NifTK/NiftyNet
Commit Name: 324b3a52837f46aac644a31eecfa361d728775de
Time: 2017-12-21
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/contrib/sampler_pairwise/sampler_pairwise.py
Class Name: PairwiseSampler
Method Name: get_pairwise_inputs