Replies: 7 comments 7 replies
-
|
Hi, I tried using |
Beta Was this translation helpful? Give feedback.
-
|
function MatToBitmap(img: TMat): Vcl.Graphics.TBitmap; |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
// ------- Definitions from OpenCV 4.8 |
Beta Was this translation helpful? Give feedback.
-
unit cv.utils;function BmpToMat(const Bitmap: TBitmap; out M: TMat): Boolean; |
Beta Was this translation helpful? Give feedback.
-
|
Dear Laex,
I had not checked in for a while.
Thank you very much for your response.
I am deeply grateful for your assistance.
Sincerely, Tonbo
From: Laentir Valetov ***@***.***>
Sent: Monday, November 4, 2024 11:35 PM
To: Laex/Delphi-OpenCV-Class ***@***.***>
Cc: tonbo01 ***@***.***>; Author ***@***.***>
Subject: Re: [Laex/Delphi-OpenCV-Class] Conversion from TMat to TBitmap (Discussion #35)
unit cv.utils;
function BmpToMat(const Bitmap: TBitmap; out M: TMat): Boolean;
function MatToBmp(const M: TMat; out Bitmap: TBitmap; const PixelFormat: TPixelFormat = pfDevice): Boolean;
—
Reply to this email directly, view it on GitHub <#35 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/A6N5BORTOJ4EB7PT3JEDTSDZ66AZJAVCNFSM6AAAAABREMVRH2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMJUGM2DMNI> .
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi. I have a similar question.
I'm using Delphi 11.3 and Delphi-OpenCV4.7.
I would like to perform a fast conversion from TMat to TBitmap with minimal steps.
Please advise me.
I am not using OpenCV 2.4.
Declare the variables as follows:
var
frame: TMat;
framebitmap: TBitmap;
It would be great if I could do something like:
Mat2Bitmap(frame, framebitmap);
Beta Was this translation helpful? Give feedback.
All reactions