ImageEn, unit ievision

TIEVisionImage.pyrUp

TIEVisionImage.pyrUp


Declaration

procedure pyrUp(dst: TIEVisionImage); overload; safecall;
procedure pyrUp(); overload; safecall;


Description

Upsample an image and then smooth it (doubling its size).
First overload places the result into destination object.
Second overload updates the current image.

Size of the destination image wil be: new_width = width*2, new_height = height*2

Parameter Description
dst Container for the destination image

Note: You cannot use pyrUp directly on a TImageEnView image, you must use assignIEVisionImage to reflect this method's changes


Demo

Demo  Demos\ImageEditing\EveryMethod\EveryMethod.dpr


Example



var
  im: TIEVisionImage;
begin
  ImageEnView1.IO.LoadFromFile('C\input.jpg');

  im := ImageEnView1.IEBitmap.GetIEVisionImage();
  im.pyrUp();
  ImageEnView1.IEBitmap.AssignIEVisionImage(im);
end;