ImageEn, unit ievision

TIEVisionImage


Declaration

TIEVisionImage = interface(TIEVisionBase)


Description

This interface allows you to create raster images or matrices.
It is possible to perform basic input/output operations and several image processing tasks. You can also connect a TIEVisionImage to a TIEBitmap, sharing the same content.


Examples

// Create empty image
image := IEVisionLib.createImage();

// Create an image from "input.jpg", resize to 100x100 and save as "output.jpg"
image := IEVisionLib.createImage('input.jpg');
image.resize(100, 100); // default interpolation = linear
image.save('output.jpg');

// Create an image of 1000x1000x24 bit
image := IEVisionLib.createImage(1000, 1000, ievUINT8, 3);

// Create an image from the TIEBitmap of a TImageEnView (sharing the content)
ImageEnView1.IEBitmap.Origin := ieboTOPLEFT;
image := IEVisionLib.createImage(ImageEnView1.IEBitmap.Width, ImageEnView1.IEBitmap.Height,
                                 ievUINT8, 3, ImageEnView1.IEBitmap.Rowlen,
                                 ImageEnView1.IEBitmap.ScanLine[0]);

// Same as previous code
image := ImageEnView1.IEBitmap.GetIEVisionImage();


var
  images: TIEVisionVectorImageRef;
  i: Integer;
  pano: TIEVisionImage;
  status: TIEVisionStitchingStatus;
begin
  images := IEVisionLib.createVectorImageRef();
  for i := 1 to 6 do
    images.push_back(IEVisionLib.createImage('image' + IntToStr( i ) + '.jpg'));
  pano := IEVisionLib.createStitcher().stitch(images, status);

  if status = ievSSOK then
  begin
    ImageEnView.IEBitmap.AssignIEVisionImage(pano);
    ImageEnView.Update;
  end
end;





Methods and Properties

Public Method  adaptiveThreshold
Public Method  addWeighted
Public Method  avg
Public Method  avgSdv
Public Method  blur
Public Method  camShift
Public Method  canny
Public Method  cmp
Public Method  convertScale
Public Method  copy
Public Method  copyFrom
Public Method  countNonZero
Public Method  create
Public Method  createAlphaMask
Public Method  DCT
Public Method  detectLines
Public Method  determinant
Public Method  DFT
Public Method  dilate
Public Method  dotProduct
Public Method  eigenVV
Public Method  equalizeHistogram
Public Method  erode
Public Method  fastNlMeansDenoisingColored
Public Method  filter2D
Public Method  findContours
Public Method  flip
Public Method  floodFill
Public Method  getAlphaMask
Public Method  getChannelFormat
Public Method  getChannels
Public Method  getColumn
Public Method  getColumns
Public Method  getDiagonal
Public Method  getHeight
Public Method  getMetadata
Public Method  getRect
Public Method  getRow
Public Method  getRowLen
Public Method  getRows
Public Method  getScanline
Public Method  getWidth
Public Method  hasAlphaMask
Public Method  houghLines
Public Method  houghLinesP
Public Method  inpaint
Public Method  inRange
Public Method  integral
Public Method  invert
Public Method  isAllWhite
Public Method  isEmpty
Public Method  LUT
Public Method  makeBorder
Public Method  matchTemplate
Public Method  matchTemplateAsMap
Public Method  max
Public Method  merge
Public Method  min
Public Method  minMax
Public Method  mulSpectrums
Public Method  mulTransposed
Public Method  norm
Public Method  operatorASSIGN
Public Method  opNot
Public Method  perspectiveTransform
Public Method  pixel_BGR8
Public Method  pixel_float32
Public Method  pixel_float64
Public Method  pixel_RGB8
Public Method  pixel_uint16
Public Method  pixel_uint8
Public Method  pyrDown
Public Method  pyrUp
Public Method  reduce
Public Method  repeatImage
Public Method  resize
Public Method  save
Public Method  scaleAdd
Public Method  setDPI
Public Method  setIdentity
Public Method  setValue
Public Method  setZero
Public Method  share
Public Method  smooth
Public Method  splitPlanes
Public Method  swap
Public Method  threshold
Public Method  transpose


See Also

Public Method  createImage