Passed
Pull Request — master (#259)
by Fernando
01:01
created

torchio.transforms.intensity_transform   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 12
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A IntensityTransform.get_images_dict() 0 3 1
A IntensityTransform.get_images() 0 3 1
1
from .transform import Transform
2
3
class IntensityTransform(Transform):
4
    """Transform that modifies voxel intensities only."""
5
    @staticmethod
6
    def get_images(sample):
7
        return sample.get_images(intensity_only=True)
8
9
    @staticmethod
10
    def get_images_dict(sample):
11
        return sample.get_images_dict(intensity_only=True)
12