CESNET / GPUJPEG

JPEG encoder and decoder library and console application for NVIDIA GPUs from CESNET and SITOLA of Faculty of Informatics at Masaryk University.
BSD 2-Clause "Simplified" License
243 stars 68 forks source link

Input the image size and image format #88

Open liuhongyan123456 opened 11 months ago

liuhongyan123456 commented 11 months ago

Can we use this compression algorithm to run tiff remote sensing images on NVIDIA Jetson platform

MartinPulec commented 11 months ago

hi @liuhongyan123456, I'll start from the back:

on NVIDIA Jetson platform

I think it should in general. Some users report success (see #35), but some users reported problems, eg. with Jetson TX2 (#54). I believe that if you have CUDA working on the Jetson, there is a solid chance that you'll get GPUJPEG working there.

tiff remote sensing images

Just to be sure, you'd like to compress input TIFF to JPEG?

Well, currently not directly. GPUJPEG can currently encode just RAW images or PAM/PNM/Y4M . TIFF is quite a complex format allowing very different internal layout. I can see 2 possibilities:

  1. the layout of your TIFFs is very simple (meaning one block of RAW image data inside the TIFF). In this case I think we can consider adding encode to GPUJPEG directly

  2. all other cases like LZW-encoded TIFF, TIFF using stripes etc. – in this case I believe that then it is best to decode with libtiff, which can do the caller

MartinPulec commented 11 months ago

Also you have the issue topic: "Input the image size and image format".

Do you have also some question about image sizes in our context?