[ITK] Fwd: N4BiasCorrection output size
Vishwanathan Shreyas
shreyas122011 at gmail.com
Tue Jan 24 01:28:36 EST 2017
Also, using useCompression=True as parameter in SimpleITK.WriteImage()
gives:
TypeError: WriteImage() got an unexpected keyword argument 'useCompression'
Though I appreciate the work on SimpleITK, I can't help but say that
SimpleITK is very poorly managed.
On Tue, Jan 24, 2017 at 11:56 AM, Vishwanathan Shreyas <
shreyas122011 at gmail.com> wrote:
> Hi Džena,
>
> Thanks for the advice! Can u tell me if there will be information loss on
> conversion to Int16?
>
> Regards,
> Shreyas
>
> On Mon, Jan 23, 2017 at 11:20 PM, Dženan Zukić <dzenanz at gmail.com> wrote:
>
>> Hi Shreyas,
>>
>> more likely reason is that you did not turn on compression in the
>> ImageFileWriter. And casting the output back to int16 would decrease the
>> size further.
>>
>> Regards,
>> Dženan
>>
>> On Mon, Jan 23, 2017 at 11:50 AM, Vishwanathan Shreyas <
>> shreyas122011 at gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I'm using SimpleITK on python. I wanted to perforn N4 bias correction on
>>> the MICCAI BRATS database. For that, first I cast the images to Float32,
>>> which were initially Int16 and then passed it to the filter.
>>>
>>> When I saved the output on disk, I found a huge gap between the input
>>> and output sizes.
>>>
>>> INPUT: ~2MB
>>> OUPUT: ~33MB !!!
>>>
>>> I know that float takes more space, but can we cast the output to Int16
>>> again without loss of information(as I don't believe float pixel values
>>> mean anything)?
>>>
>>> Thanks,
>>> Shreyas
>>>
>>>
>>> _______________________________________________
>>> Community mailing list
>>> Community at itk.org
>>> http://public.kitware.com/mailman/listinfo/community
>>>
>>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20170124/05ceb262/attachment-0001.html>
More information about the Community
mailing list