Hot to read uint16 movie jpeg 2000 files (mj2) with open cv and c++
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
Did you already found a way to do this? I'm struggling with the same issue at the moment...