Kakadu JP2000 reader
Hi! I was wondering if it would be possible to implement the Kakadu JP2000 reader into scikit-image? I believe but am not sure that the reader only could be used without licensing fees? At least it's worth investigating because that reader is really the most powerful JP2000 reader out there and the only one that can deal with the large HiRISE images of the MRO spacecraft. Failing the above, a work-around could be to implement or encapsulate system calls to the freely downloadable kdu-expand utilities, converting it to something that is compatible with your current import routines? Best regards, Michael
What about the OpenJPEG library: http://www.openjpeg.org. Could that be an alternative?
On Sunday, November 17, 2013 8:57:56 PM UTC-8, Pierre Villeneuve wrote:
What about the OpenJPEG library: http://www.openjpeg.org<http://www.google.com/url?q=http%3A%2F%2Fwww.openjpeg.org&sa=D&sntz=1&usg=AFQjCNER3CcvIjOEzdDID3pyA5Q1ks5LPw>. Could that be an alternative?
If this is the driver that is exposed by GDAL, it's far too slow and crashy for HiRISE images.
On Sat, Nov 23, 2013 at 4:00 AM, Michael Aye <kmichael.aye@gmail.com> wrote:
If this is the driver that is exposed by GDAL, it's far too slow and crashy for HiRISE images.
These images look like they're about 1GB in size. Do you want to read the entire image into memory? How large would that NumPy array be? Are you interested in only loading a specific portion of the image? Stéfan
It looks to me from this link http://www.gdal.org/frmt_jp2kak.html that GDAL uses Kakadu, not OpenJPEG. On Friday, November 22, 2013 6:00:07 PM UTC-8, Michael Aye wrote:
On Sunday, November 17, 2013 8:57:56 PM UTC-8, Pierre Villeneuve wrote:
What about the OpenJPEG library: http://www.openjpeg.org<http://www.google.com/url?q=http%3A%2F%2Fwww.openjpeg.org&sa=D&sntz=1&usg=AFQjCNER3CcvIjOEzdDID3pyA5Q1ks5LPw>. Could that be an alternative?
If this is the driver that is exposed by GDAL, it's far too slow and crashy for HiRISE images.
Read on, it says: "However, it is not free, and so normally builds of GDAL from source will not include support for this driver unless the builder purchases a license for the library and configures accordingly. GDAL includes another JPEG2000 driver <http://www.gdal.org/frmt_jpeg2000.html> based on the free JasPer library." On Monday, November 25, 2013 10:27:39 AM UTC-8, Pierre Villeneuve wrote:
It looks to me from this link http://www.gdal.org/frmt_jp2kak.html<http://www.google.com/url?q=http%3A%2F%2Fwww.gdal.org%2Ffrmt_jp2kak.html&sa=D&sntz=1&usg=AFQjCNFhmMQ2uUwufLDGTt3oLA9HOmpUyw>that GDAL uses Kakadu, not OpenJPEG.
On Friday, November 22, 2013 6:00:07 PM UTC-8, Michael Aye wrote:
On Sunday, November 17, 2013 8:57:56 PM UTC-8, Pierre Villeneuve wrote:
What about the OpenJPEG library: http://www.openjpeg.org<http://www.google.com/url?q=http%3A%2F%2Fwww.openjpeg.org&sa=D&sntz=1&usg=AFQjCNER3CcvIjOEzdDID3pyA5Q1ks5LPw>. Could that be an alternative?
If this is the driver that is exposed by GDAL, it's far too slow and crashy for HiRISE images.
In general, the GDAL framework supports more than 1 driver per image format and uses whatever is first in the loaded queue, I believe. On Monday, November 25, 2013 2:15:39 PM UTC-8, Michael Aye wrote:
Read on, it says:
"However, it is not free, and so normally builds of GDAL from source will not include support for this driver unless the builder purchases a license for the library and configures accordingly. GDAL includes another JPEG2000 driver<http://www.google.com/url?q=http%3A%2F%2Fwww.gdal.org%2Ffrmt_jpeg2000.html&sa=D&sntz=1&usg=AFQjCNHdAkE6m_v28BbHHbf3BW0aMpjBSg> based on the free JasPer library."
On Monday, November 25, 2013 10:27:39 AM UTC-8, Pierre Villeneuve wrote:
It looks to me from this link http://www.gdal.org/frmt_jp2kak.html<http://www.google.com/url?q=http%3A%2F%2Fwww.gdal.org%2Ffrmt_jp2kak.html&sa=D&sntz=1&usg=AFQjCNFhmMQ2uUwufLDGTt3oLA9HOmpUyw>that GDAL uses Kakadu, not OpenJPEG.
On Friday, November 22, 2013 6:00:07 PM UTC-8, Michael Aye wrote:
On Sunday, November 17, 2013 8:57:56 PM UTC-8, Pierre Villeneuve wrote:
What about the OpenJPEG library: http://www.openjpeg.org<http://www.google.com/url?q=http%3A%2F%2Fwww.openjpeg.org&sa=D&sntz=1&usg=AFQjCNER3CcvIjOEzdDID3pyA5Q1ks5LPw>. Could that be an alternative?
If this is the driver that is exposed by GDAL, it's far too slow and crashy for HiRISE images.
Dear Michael On Tue, Oct 29, 2013 at 12:59 AM, Michael Aye <kmichael.aye@gmail.com> wrote:
I was wondering if it would be possible to implement the Kakadu JP2000 reader into scikit-image? I believe but am not sure that the reader only could be used without licensing fees? At least it's worth investigating because that reader is really the most powerful JP2000 reader out there and the only one that can deal with the large HiRISE images of the MRO spacecraft.
Does FreeImage then fail on these images? Do you have an example image for us to test on? Thanks Stéfan
participants (3)
-
Michael Aye
-
Pierre Villeneuve
-
Stéfan van der Walt