ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 How to exchange content between IEBitmap an OpenCV Mat quickly?

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
supersk Posted - Sep 09 2025 : 02:45:09
How to exchange content between IEBitmap an OpenCV Mat quickly?
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Sep 09 2025 : 21:55:32
Hi

An OpenCV Mat file would be represented in ImageEn by a TIEVisionImage:

http://www.imageen.com/help/TIEVisionImage.html

Or the alias:

http://www.imageen.com/help/TIEVisionMatrix.html


Which you would assign to a TIEBitmap as follows:

MyIEBitmap.AssignIEVisionImage( MyIEVisionImage );


Here's an example of creating a matrix:

const
  sharpenKernel: array [0..2] of array [0..2] of single = ((-1, -1, -1), (-1, 8, -1), (-1, -1, -1));
var
  k: TIEVisionImage;
  i, j: integer;
  l: PSingleArray;
begin
  // convert the kernel to TIEVisionImage
  k := IEVisionLib().createImage(3, 3, ievFLOAT32, 1);
  for i := 0 to 2 do
  begin
    l := k.getScanline(i);
    for j := 0 to 2 do
      l[j] := sharpenKernel[i, j];
  end;
...


Nigel
Xequte Software
www.imageen.com