Laex / Delphi-OpenCV

Project Delphi-OpenCV. Translation of OpenCV library header files in Delphi
507 stars 226 forks source link

TocvGrayScaleOperation returns distorted image #20

Closed DonovanBoddy closed 10 years ago

DonovanBoddy commented 10 years ago

I create a single instance of a TocvGrayScaleOperation and call the DoTransform, it executes fine, no errors but when i display the bitmap in the resulting IocvImage it comes out distorted. see attached.

I suspect it has something to do with the bitmap pixel format?

Thanks for the great library

capture

Laex commented 10 years ago

Need source code

DonovanBoddy commented 10 years ago

Uploaded sample project here

http://filegooi.co.za/get2/f8d3ab29bf949a45d1cea2177e2936f6/IOCV+GrayScale.rar

FYI need to apply fix posted in issue #22 for it to work

DonovanBoddy commented 10 years ago

After more testing it seems to be a problem with the IocvImage.asbitmap that is causing the problem because if i draw the IocvImage using a TocvView it works correctly