¿Puedo leer una parte de la imagen jpeg (rectángulo) descomprimiéndola hasta los parámetros DCT?

I need to use some part of a jpeg image (a rectangle in the center) decompressing it up to DCT coeficients. Is this possible with libjpeg , or some other open source tool ?

preguntado el 09 de marzo de 12 a las 16:03

1 Respuestas

What you're asking to do is non-standard use case. It is unlikely any open source library will have this feature built-in. It shouldn't take major modifications to get the data you need. How much effort are you willing to provide and how much do you understand the JPEG standard and the library you're using?

If your requested rectangle is on MCU boundaries, then it should be relatively simple to modify the decode loop to copy out the coefficient data that you're interested in. I am not familiar with the open source JPEG libraries, but within my own JPEG codec, the changes required would be trivial.

respondido 14 mar '12, 21:03

Well, they have a function outputting all of the image in DCT coefficients and I will use that. - Dimitar Slavchev

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.