4d9d2a1fc4e0d9289000a235340235802d51a97a,app/grandchallenge/cases/image_builders/dicom.py,,_create_itk_from_dcm,#,262

Before Change


        temp.seek(0)
        temp.write(dcm_array.tobytes())
        temp.flush()
        temp.seek(0)

        del dcm_array

        img = SimpleITK.Image(shape, sitk_dtype, 1)

After Change


            dcm_array[z_index % dicom_ds.n_slices, :, :] = pixel_array

        del ds
    if use_pixel_array:
        img = SimpleITK.GetImageFromArray(pixel_array, isVector=is_rgb)
    else:
        img = SimpleITK.GetImageFromArray(dcm_array, isVector=is_rgb)
    return img


def image_builder_dicom(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: comic/grand-challenge.org
Commit Name: 4d9d2a1fc4e0d9289000a235340235802d51a97a
Time: 2021-02-12
Author: 57257130+MikeOverkamp-diag@users.noreply.github.com
File Name: app/grandchallenge/cases/image_builders/dicom.py
Class Name:
Method Name: _create_itk_from_dcm


Project Name: nilearn/nilearn
Commit Name: b2a07e8dc86a5d057fc38c4b85461031cd4b78b9
Time: 2018-10-10
Author: pierre.bellec@gmail.com
File Name: nilearn/plotting/html_stat_map.py
Class Name:
Method Name: view_stat_map


Project Name: sentinel-hub/eo-learn
Commit Name: 05bd0a48c7886e81ecd8a0b6183a01cd65e6be72
Time: 2019-12-18
Author: jovan.visnjic@sinergise.com
File Name: core/eolearn/core/eodata.py
Class Name: EOPatch
Method Name: load_aws_new