-- Created on: 1993-07-27 -- Created by: Jean Louis FRENKEL -- Copyright (c) 1993-1999 Matra Datavision -- Copyright (c) 1999-2012 OPEN CASCADE SAS -- -- The content of this file is subject to the Open CASCADE Technology Public -- License Version 6.5 (the "License"). You may not use the content of this file -- except in compliance with the License. Please obtain a copy of the License -- at http://www.opencascade.org and read it completely before using this file. -- -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France. -- -- The Original Code and all software distributed under the License is -- distributed on an "AS IS" basis, without warranty of any kind, and the -- Initial Developer hereby disclaims all such warranties, including without -- limitation, any warranties of merchantability, fitness for a particular -- purpose or non-infringement. Please see the License for the specific terms -- and conditions governing the rights and limitations under the License. package Image ---Purpose: The package Image provide PseudoColorImage and ColorImage -- definition and a set of key functions from the fields -- of image. uses TCollection, TColStd, Aspect, Quantity, gp, MMgt is ------------------------ ---Category: The classes ------------------------ deferred class Image; class PixelInterpolation; class AveragePixelInterpolation; class BalancedPixelInterpolation; class PlanarPixelInterpolation; class BilinearPixelInterpolation; ---Purpose : Several methods to compute Pixel on non-integer Image -- coordinate. private generic class GPixelField; ---Purpose : Generic Image definition . deferred generic class GImage, PixelRow, PixelField; ---Purpose : Generic Image definition . deferred class DColorImage instantiates GImage from Image (ColorPixel from Aspect); ---Purpose : instantiates GImage for ColorImage definition . deferred class DIndexedImage instantiates GImage from Image (IndexPixel from Aspect); ---Purpose : instantiates GImage for PseudoColorImage definition . class PseudoColorImage; ---Purpose : PseudoColorImage definition . class ColorImage; ---Purpose : ColorImage definition . class Convertor; ---Purpose: converts aPseudoColorImage to a ColorImage and vice-versa. class ColorPixelMapHasher instantiates MapHasher from TCollection( ColorPixel from Aspect ); class ColorPixelDataMap instantiates DataMap from TCollection ( ColorPixel from Aspect, Integer from Standard, ColorPixelMapHasher from Image ) ; class IndexPixelMapHasher instantiates MapHasher from TCollection( IndexPixel from Aspect ); class LookupTable instantiates DataMap from TCollection( IndexPixel from Aspect, IndexPixel from Aspect, IndexPixelMapHasher ); class PixMap; ---Purpose: Aspect_PixMap implementation. ----------------------------- ---Category: Imported types: ----------------------------- imported PixelAddress; imported HPrivateImage; imported CRawBufferData; ----------------------------- ---Category: The Enumerations ----------------------------- enumeration FlipType is FT_HORIZONTAL, FT_VERTICAL, FT_MAINDIAGONAL, FT_ANTIDIAGONAL, FT_CENTER, FT_90, FT_180, FT_270 end FlipType ; ---Purpose: Type of orientation in a symmetry. -- - FT_HORIZONTAL : symmetry with respect to an horizontal axis. -- - FT_VERTICAL : symmetry with respect to a vertical axis. -- - FT_MAINDIAGONAL : symmetry with respect to a -- diagonal oriented at 45 degrees. -- - FT_ANTIDIAGONAL : symmetry with respect to a -- diagonal oriented at -45 degrees. -- - FT_CENTER : -- - FT_90 : rotation of 90 degrees. -- - FT_180 : rotation of 180 degrees. -- - FT_270 : rotation of -90 degrees. enumeration DitheringMethod is DM_NearestColor, DM_ErrorDiffusion end DitheringMethod ; ---Purpose: Type of dithering method. enumeration TypeOfImage is TOI_ColorImage, TOI_PseudoColorImage, TOI_RGB, TOI_RGBA, TOI_RGBF, TOI_RGBAF, TOI_FLOAT end TypeOfImage ; Zoom ( aImage : mutable Image from Image ; aInterpolation : PixelInterpolation from Image; aCoefX,aCoefY : in Real from Standard ) ; ---Purpose : Zoom an Image with a specific PixelInterpolation method. Zoom ( aImage : mutable Image from Image ; aCoefX,aCoefY : in Real from Standard ) ; ---Purpose : Zoom an Image with the default PixelInterpolation method. Rotate ( aImage : mutable Image from Image ; aInterpolation : PixelInterpolation from Image; aAngle : in PlaneAngle from Quantity ) ; ---Purpose : Rotate an Image with a specific PixelInterpolation method. Rotate ( aImage : mutable Image from Image ; aAngle : in PlaneAngle from Quantity ) ; ---Purpose : Rotate an Image with the default PixelInterpolation method. Translate( aImage : mutable Image from Image ; aInterpolation : PixelInterpolation from Image; DX, DY : in Real from Standard ) ; ---Purpose : Translate an Image with a specific PixelInterpolation -- method. Translate( aImage : mutable Image from Image ; DX, DY : in Real from Standard ) ; ---Purpose : Translate an Image with the default PixelInterpolation -- method. Affine( aImage : mutable Image from Image ; aInterpolation : PixelInterpolation from Image; Trsf : in GTrsf2d from gp ) ; ---Purpose : General transformation of an Image with a specific -- PixelInterpolation method. -- Warning: -- Raises an exception if the matrix of the transformation -- is not inversible. Affine( aImage : mutable Image from Image ; Trsf : in GTrsf2d from gp ) ; ---Purpose : General transformation of an Image with the default -- PixelInterpolation method. -- Warning: -- Raises an exception if the matrix of the transformation -- is not inversible. Affine( aImage : mutable Image from Image ; aInterpolation : PixelInterpolation from Image; Trsf : in Trsf from gp ) ; ---Purpose : General transformation of an Image with a specific -- PixelInterpolation method. -- Warning: -- Raises an exception if the matrix of the transformation -- is not inversible. Affine( aImage : mutable Image from Image ; Trsf : in Trsf from gp ) ; ---Purpose : General transformation of an Image with the default -- PixelInterpolation method. -- Warning: -- Raises an exception if the matrix of the transformation -- is not inversible. end Image;