Computer Vision News - November 2021

57 Pythonscripting for 3D Slicer import SampleData sampleDataLogic = SampleData.SampleDataLogic() sampleDataLogic.downloadMRHead() n = getNode('MRHead') You can also convert an image to an array and then increase its contrast. a = array('MRHead') volumeNode = getNode('MRHead') a = arrayFromVolume(volumeNode) # Increase image contrast a[:] = a * 2.0 arrayFromVolumeModified(volumeNode)

RkJQdWJsaXNoZXIy NTc3NzU=