1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 <2022> 2023 2024 2025 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 <2022> 2023 2024 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | NDCodec Compression Factor |
From: | "Smith, William via Tech-talk" <tech-talk at aps.anl.gov> |
To: | "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov> |
Date: | Tue, 22 Mar 2022 07:03:47 +0000 |
Hi, I have been revisiting using the NDCodec plugin in areaDetector. I noticed that when I try to repeat the example shown here
https://cars9.uchicago.edu/software/epics/NDPluginCodec.html under “Screen Shots” with the following parameters plugin #NDCodecConfigure(const char *portName, int queueSize, int blockingCallbacks, const char *NDArrayPort, int NDArrayAddr, int maxBuffers, size_t maxMemory, int priority, int stackSize) NDCodecConfigure("CODEC1", 20, 0, "SIM1", 0, 0, 0, 0, 0, 5) With the same settings as is shows in the example: Compressor: Blosc Blosc Compressor: ZSTD Blosc Comp. Level: 5 Blosc Shuffle: Bit Blosc num threads: 6 I can only achieve compression of something like 1.3 not 151.35 as is shown in the example. What might I be doing wrong? If I use JPEG compression I can achieve higher compression ratios, e.g with JPEG quality set to 10 I get compression factor of 81.5. With anything other than JPEG, for all combinations of settings I get roughly the same compression factor
between 1 and 2. The input image is coming from the sim detector. I am using a 1024x 1024 image of UInt8 which is a single peak centred about (500,500).
There is no codec error shown. I get no error in the ioc shell.
Many thanks, Will
Helmholtz-Zentrum Berlin für Materialien und Energie GmbH Mitglied der Hermann von Helmholtz-Gemeinschaft Deutscher Forschungszentren e.V. Aufsichtsrat: Vorsitzender Dr. Volkmar Dietz, stv. Vorsitzende Dr. Jutta Koch-Unterseher Geschäftsführung: Prof. Dr. Bernd Rech, Thomas Frederking Sitz Berlin, AG Charlottenburg, 89 HRB 5583 Postadresse: Hahn-Meitner-Platz 1 14109 Berlin Deutschland |