Skip to content

Commit

Permalink
fix for writing 16-bit jpeg2000
Browse files Browse the repository at this point in the history
  • Loading branch information
sturkmen72 committed Apr 16, 2016
1 parent 0df901b commit 9823966
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/imgcodecs/src/grfmt_jpeg2000.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ bool Jpeg2KEncoder::writeComponent16u( void *__img, const Mat& _img )

for( int y = 0; y < h; y++ )
{
const uchar* data = _img.ptr(y);
const ushort* data = _img.ptr<ushort>(y);
for( int i = 0; i < ncmpts; i++ )
{
for( int x = 0; x < w; x++)
Expand Down

0 comments on commit 9823966

Please sign in to comment.