Hot to read uint16 movie jpeg 2000 files (mj2) with open cv and c++

asked 2016-03-07 07:34:49 -0500

flov25 gravatar image

Hi, I have 1000x1000 uint16 mj2 video files, genrerated with matlab (v = VideoWriter('testData','Archival')), and want to read them in with opencv and c++. I tried to this with videocapture.read, but it reads them in as 8Bit 3CH. The high resolution is important for me, because I need to detect extreme small changes in intensity for intrinsic imaging of brains.

Is there a simple way to tell opencv that this is a 16Bit U16 file?

Best Regards Florian

edit retag flag offensive close merge delete

Comments

Did you already found a way to do this? I'm struggling with the same issue at the moment...

Vere_M3BIORES gravatar imageVere_M3BIORES ( 2019-05-15 08:46:55 -0500 )edit