Ask Your Question
0

[JPEG2000] ROI in JPEG2000 compression

asked 2016-09-26 03:53:02 -0600

P1t gravatar image

Hi,

I would like to use the roi functionality of JPEG2000 in imencode function. This functionality allows to compress some parts with a level of compression lower than the rest of the image. I don't find any documentation about this in OpenCV doc and I would like to if OpenCV can handle this.

Thank you in advance

PS : I use Opencv 2.4 (for nom) on Ubuntu OS

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-09-26 04:10:13 -0600

berak gravatar image

at the moment, it's simply not possible, to do this from opencv.

if you really need ths feature, you'll have to interact with the jasper lib directly.

edit flag offensive delete link more

Comments

After looking the jasper's FAQ, it seems that only the decoder can handle roi functionality.

P1t gravatar imageP1t ( 2016-09-26 04:22:20 -0600 )edit

Image compression is pretty new for me, do you know some algorithm that allow this functionality? I would like to compress some image with loss except in the roi that need to be lossless.

P1t gravatar imageP1t ( 2016-09-26 04:25:11 -0600 )edit

sorry, no idea about jasper.

berak gravatar imageberak ( 2016-09-26 04:31:54 -0600 )edit

can it be, you're wrong here in general ?

opencv is a computer-vision / machine-learning lib (and yes, it reads images, too), not a general purpose image manipulation one.

berak gravatar imageberak ( 2016-09-26 04:33:27 -0600 )edit
1

I use OpenCV because I do lot of processing on those images. The compression part is just the result step. This is why I was looking for openCV's solutions. Btw thank you for your answer

P1t gravatar imageP1t ( 2016-09-26 04:58:37 -0600 )edit

nvm, was just guessing.

berak gravatar imageberak ( 2016-09-26 05:24:28 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2016-09-26 03:53:02 -0600

Seen: 462 times

Last updated: Sep 26 '16