JiscMail Logo
Email discussion lists for the UK Education and Research communities

Help for CCP4BB Archives


CCP4BB Archives

CCP4BB Archives


CCP4BB@JISCMAIL.AC.UK


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

CCP4BB Home

CCP4BB Home

CCP4BB  November 2011

CCP4BB November 2011

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: image compression

From:

Frank von Delft <[log in to unmask]>

Reply-To:

Frank von Delft <[log in to unmask]>

Date:

Tue, 8 Nov 2011 05:27:01 +0000

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (165 lines)

I'll second that...  can't remember anybody on the barricades about 
"corrected" CCD images, but they've been just so much more practical.

Different kind of problem, I know, but equivalent situation:  the people 
to ask are not the purists, but the ones struggling with the huge 
volumes of data.  I'll take the lossy version any day if it speeds up 
real-time evaluation of data quality, helps me browse my datasets, and 
allows me to do remote but intelligent data collection.

phx.



On 08/11/2011 02:22, Herbert J. Bernstein wrote:
> Dear James,
>
>     You are _not_ wasting your time.  Even if the lossy compression ends
> up only being used to stage preliminary images forward on the net while
> full images slowly work their way forward, having such a compression
> that preserves the crystallography in the image will be an important
> contribution to efficient workflows.  Personally I suspect that
> such images will have more important, uses, e.g. facilitating
> real-time monitoring of experiments using detectors providing
> full images at data rates that simply cannot be handled without
> major compression.  We are already in that world.  The reason that
> the Dectris images use Andy Hammersley's byte-offset compression,
> rather than going uncompressed or using CCP4 compression is that
> in January 2007 we were sitting right on the edge of a nasty
> CPU-performance/disk bandwidth tradeoff, and the byte-offset
> compression won the competition.   In that round a lossless
> compression was sufficient, but just barely.  In the future,
> I am certain some amount of lossy compression will be
> needed to sample the dataflow while the losslessly compressed
> images work their way through a very back-logged queue to the disk.
>
>     In the longer term, I can see people working with lossy compressed
> images for analysis of massive volumes of images to select the
> 1% to 10% that will be useful in a final analysis, and may need
> to be used in a lossless mode.  If you can reject 90% of the images
> with a fraction of the effort needed to work with the resulting
> 10% of good images, you have made a good decision.
>
>     An then there is the inevitable need to work with images on
> portable devices with limited storage over cell and WIFI networks. ...
>
>     I would not worry about upturned noses.  I would worry about
> the engineering needed to manage experiments.  Lossy compression
> can be an important part of that engineering.
>
>     Regards,
>       Herbert
>
>
> At 4:09 PM -0800 11/7/11, James Holton wrote:
>> So far, all I really have is a "proof of concept" compression algorithm here:
>> http://bl831.als.lbl.gov/~jamesh/lossy_compression/
>>
>> Not exactly "portable" since you need ffmpeg and the x264 libraries
>> set up properly.  The latter seems to be constantly changing things
>> and breaking the former, so I'm not sure how "future proof" my
>> "algorithm" is.
>>
>> Something that caught my eye recently was fractal compression,
>> particularly since FIASCO has been part of the NetPBM package for
>> about 10 years now.  Seems to give comparable compression vs quality
>> as x264 (to my eye), but I'm presently wondering if I'd be wasting my
>> time developing this further?  Will the crystallographic world simply
>> turn up its collective nose at lossy images?  Even if it means waiting
>> 6 years for "Nielsen's Law" to make up the difference in network
>> bandwidth?
>>
>> -James Holton
>> MAD Scientist
>>
>> On Mon, Nov 7, 2011 at 10:01 AM, Herbert J. Bernstein
>> <[log in to unmask]>  wrote:
>>>   This is a very good question.  I would suggest that both versions
>>>   of the old data are useful.  If was is being done is simple validation
>>>   and regeneration of what was done before, then the lossy compression
>>>   should be fine in most instances.  However, when what is being
>>>   done hinges on the really fine details -- looking for lost faint
>>>   spots just peeking out from the background, looking at detailed
>>>   peak profiles -- then the lossless compression version is the
>>>   better choice.  The annotation for both sets should be the same.
>>>   The difference is in storage and network bandwidth.
>>>
>>>   Hopefully the fraud issue will never again rear its ugly head,
>>>   but if it should, then having saved the losslessly compressed
>>>   images might prove to have been a good idea.
>>>
>>>   To facilitate experimentation with the idea, if there is agreement
>>>   on the particular lossy compression to be used, I would be happy
>>>   to add it as an option in CBFlib.  Right now all the compressions
>>   >  we have are lossless.
>>>   Regards,
>>>    Herbert
>>>
>>>
>>>   =====================================================
>>>    Herbert J. Bernstein, Professor of Computer Science
>>>     Dowling College, Kramer Science Center, KSC 121
>>>          Idle Hour Blvd, Oakdale, NY, 11769
>>>
>>>                   +1-631-244-3035
>>>                   [log in to unmask]
>>>   =====================================================
>>>
>>>   On Mon, 7 Nov 2011, James Holton wrote:
>>>
>>>>   At the risk of sounding like another "poll", I have a pragmatic question
>>>>   for the methods development community:
>>>>
>>>>   Hypothetically, assume that there was a website where you could download
>>>>   the original diffraction images corresponding to any given PDB file,
>>>>   including "early" datasets that were from the same project, but because of
>>>>   smeary spots or whatever, couldn't be solved.  There might even be datasets
>>>>   with "unknown" PDB IDs because that particular project never did work out,
>>>>   or because the relevant protein sequence has been lost.  Remember, few of
>>>>   these datasets will be less than 5 years old if we try to allow enough time
>>>>   for the original data collector to either solve it or graduate (and then
>>>>   cease to care).  Even for the "final" dataset, there will be a delay, since
>>>>   the half-life between data collection and coordinate deposition in the PDB
>>>>   is still ~20 months. Plenty of time to forget.  So, although the
>>>> images were
>>>>   archived (probably named "test" and in a directory called "john") it may be
>>>>   that the only way to figure out which PDB ID is the "right answer" is by
>>>>   processing them and comparing to all deposited Fs.  Assume this was done.
>>>>    But there will always be some datasets that don't match any PDB.
>>>> Are those
>>>>   interesting?  What about ones that can't be processed?  What
>>>> about ones that
>>>>   can't even be indexed?  There may be a lot of those!  (hypothetically, of
>>>>   course).
>>>>
>>>>   Anyway, assume that someone did go through all the trouble to make these
>>>>   datasets "available" for download, just in case they are interesting, and
>>>>   annotated them as much as possible.  There will be about 20
>>>> datasets for any
>>>>   given PDB ID.
>>>>
>>>>   Now assume that for each of these datasets this hypothetical website has
>>>>   two links, one for the "raw data", which will average ~2 GB per
>>>> wedge (after
>>>>   gzip compression, taking at least ~45 min to download), and a second link
>>>>   for a "lossy compressed" version, which is only ~100 MB/wedge (2 min
>>>>   download). When decompressed, the images will visually look
>>>> pretty much like
>>>>   the originals, and generally give you very similar Rmerge, Rcryst, Rfree,
>>>>   I/sigma, anomalous differences, and all other statistics when
>>>> processed with
>>>>   contemporary software.  Perhaps a bit worse.  Essentially, lossy
>>>> compression
>>>>   is equivalent to adding noise to the images.
>>>>
>>>>   Which one would you try first?  Does lossy compression make it easier to
>>>>   hunt for "interesting" datasets?  Or is it just too repugnant to have
>>>>   "modified" the data in any way shape or form ... after the detector
>>>>   manufacturer's software has "corrected" it?  Would it suffice to simply
>>>>   supply a couple of "example" images for download instead?
>>>>
>>>>   -James Holton
>>>>   MAD Scientist
>>>>
>

Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

April 2024
March 2024
February 2024
January 2024
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007


JiscMail is a Jisc service.

View our service policies at https://www.jiscmail.ac.uk/policyandsecurity/ and Jisc's privacy policy at https://www.jisc.ac.uk/website/privacy-notice

For help and support help@jisc.ac.uk

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager