[ITK Community] [Insight-users] Compressing Tif files

Bill Lorensen bill.lorensen at gmail.com
Mon Dec 23 10:25:21 EST 2013


I am preparing a patch now that will expose the jpeg quality parameter.

Bill


On Mon, Dec 23, 2013 at 9:37 AM, Fethallah Benmansour
<fethallah at gmail.com> wrote:
> Dear Bill,
>
> Thanks a bunch, that works like a charm :-)
> I think that my last error was that I commented
> writer->SetUseCompression(true);
>
> Regarding the compression rate, I'm on the verge of doing it myself.
>
> Thanks a lot Bill.
>
> Merry Xmas and happy holidays.
>
> --
> Fethallah
>
>
> --
> Fethallah
>
>
> On Mon, Dec 23, 2013 at 2:34 PM, Bill Lorensen <bill.lorensen at gmail.com>
> wrote:
>>
>> I just tried your code and it works for me.
>>
>>
>> On Mon, Dec 23, 2013 at 8:25 AM, Bill Lorensen <bill.lorensen at gmail.com>
>> wrote:
>> > Try my version:
>> >
>> > On Mon, Dec 23, 2013 at 8:17 AM, Fethallah Benmansour
>> > <fethallah at gmail.com> wrote:
>> >> I can call you, and/or we can have a WebEx.
>> >>
>> >> Regards,
>> >>
>> >> --
>> >> Fethallah
>> >>
>> >> --
>> >> Fethallah
>> >>
>> >>
>> >> On Mon, Dec 23, 2013 at 2:16 PM, Fethallah Benmansour
>> >> <fethallah at gmail.com>
>> >> wrote:
>> >>>
>> >>> Please, find it attached.
>> >>>
>> >>> --
>> >>> Fethallah
>> >>>
>> >>>
>> >>> On Mon, Dec 23, 2013 at 2:04 PM, Bill Lorensen
>> >>> <bill.lorensen at gmail.com>
>> >>> wrote:
>> >>>>
>> >>>> email to me your itkTIFFImageIO.cxx
>> >>>>
>> >>>>
>> >>>>
>> >>>> On Mon, Dec 23, 2013 at 7:58 AM, Fethallah Benmansour
>> >>>> <fethallah at gmail.com> wrote:
>> >>>> > So, we need to figure out what is the difference between your
>> >>>> > current
>> >>>> > working setup and mine.
>> >>>> > First, In my current version of ITK, that is 4.4.2, the following
>> >>>> > piece
>> >>>> > of
>> >>>> > code:
>> >>>> >  if ( compression == COMPRESSION_JPEG )
>> >>>> >       {
>> >>>> >       TIFFSetField(tif, TIFFTAG_JPEGQUALITY, 75); // Parameter
>> >>>> >       TIFFSetField(tif, TIFFTAG_JPEGCOLORMODE, JPEGCOLORMODE_RGB);
>> >>>> >       //photometric = PHOTOMETRIC_YCBCR;
>> >>>> >       }
>> >>>> >
>> >>>> > is between 1876 and 1881. Which different from yours apparently.
>> >>>> >
>> >>>> > Are you sure that we are using the same version ?
>> >>>> >
>> >>>> > Have you made any customized configuration with ccmake of your ITK
>> >>>> > build?
>> >>>> > In my case, I only changed the INSTALL_PREFIX.
>> >>>> > I'm working under a 64-bits Windows 7, and using VS8 (2005)
>> >>>> > 64-bits.
>> >>>> >
>> >>>> > Kind regards,
>> >>>> >
>> >>>> > --
>> >>>> > Fethallah
>> >>>>
>> >>>>
>> >>>>
>> >>>> --
>> >>>> Unpaid intern in BillsBasement at noware dot com
>> >>>
>> >>>
>> >>
>> >
>> >
>> >
>> > --
>> > Unpaid intern in BillsBasement at noware dot com
>>
>>
>>
>> --
>> Unpaid intern in BillsBasement at noware dot com
>
>



-- 
Unpaid intern in BillsBasement at noware dot com
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users


More information about the Community mailing list