[Insight-users] Compressing Tif files
Bill Lorensen
bill.lorensen at gmail.com
Mon Dec 23 11:32:43 EST 2013
The gerrit patch is here:
http://review.source.kitware.com/#/c/13884/
On Mon, Dec 23, 2013 at 11:26 AM, Fethallah Benmansour
<fethallah at gmail.com> wrote:
> Thanks Bill ! please, let me know when it's done and where would the patch
> be.
>
> Best,
>
> --
> Fethallah
>
> --
> Fethallah
>
>
> On Mon, Dec 23, 2013 at 4:25 PM, Bill Lorensen <bill.lorensen at gmail.com>
> wrote:
>>
>> 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
>
>
--
Unpaid intern in BillsBasement at noware dot com
More information about the Insight-users
mailing list