Commit 68b7323b authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #6417 from sturkmen72:patch-14

parents c02d89bf 98239664
......@@ -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++)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment