Exemplo n.º 1
0
        public void ImageDiffWithTolerance_OCCT29847()
        {
            var imageNew = new Image_PixMap();

            imageNew.InitTrash(Image_Format.Image_Format_RGB, 1, 1);
            imageNew.SetPixelColor(0, 0, new Quantity_Color(0.5, 0.5, 0.5, Quantity_TypeOfColor.Quantity_TOC_RGB));
            var imageRef = new Image_PixMap();

            imageRef.InitTrash(Image_Format.Image_Format_RGB, 1, 1);
            imageRef.SetPixelColor(0, 0, new Quantity_Color(0.6, 0.6, 0.6, Quantity_TypeOfColor.Quantity_TOC_RGB));

            var imageDiff = new Image_Diff();

            imageDiff.Init(imageRef, imageNew);
            Assert.AreEqual(1, imageDiff.Compare());
            imageDiff.SetColorTolerance(0.2);
            Assert.AreEqual(0, imageDiff.Compare());
        }
Exemplo n.º 2
0
 public Graphic3d_CubeMap(Image_PixMap thePixmap, bool theToGenerateMipmaps)
     : base()
 {
     throw new NotImplementedException("Native class is abstract");
 }
Exemplo n.º 3
0
 public bool BufferDump(Image_PixMap theImage, ref Graphic3d_BufferType theBufferType)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 4
0
 public bool ToPixMap(Image_PixMap theImage, int theWidth, int theHeight)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 5
0
 public bool ToPixMap(Image_PixMap theImage, int theWidth, int theHeight, ref Graphic3d_BufferType theBufferType)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 6
0
 public Graphic3d_CubeMapPacked(Image_PixMap theImage)
     : base()
 {
     throw new NotImplementedException();
 }
 public Graphic3d_TextureEnv(Image_PixMap thePixMap)
     : base()
 {
     throw new NotImplementedException();
 }
 public void GenerateEnvLUT(Image_PixMap theLUT)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 9
0
 public Graphic3d_AspectMarker3d(Image_PixMap theTextureImage)
     : base()
 {
     throw new NotImplementedException();
 }
Exemplo n.º 10
0
 public void convertToCompatible(Image_SupportedFormats theSupported, Image_PixMap theImage)
 {
     throw new NotImplementedException();
 }
 public void GenerateEnvLUT(Image_PixMap theLUT, uint theNbIntegralSamples)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 12
0
 public Graphic3d_MarkerImage(Image_PixMap theImage)
     : base()
 {
     throw new NotImplementedException();
 }
Exemplo n.º 13
0
 public Graphic3d_HatchStyle(Image_PixMap thePattern)
     : base()
 {
     throw new NotImplementedException();
 }
Exemplo n.º 14
0
 public bool checkImage(Image_PixMap theImage, ref uint theTileNumberX)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 15
0
 public Graphic3d_CubeMap(Image_PixMap thePixmap)
     : base()
 {
     throw new NotImplementedException("Native class is abstract");
 }
Exemplo n.º 16
0
 public void SetTexturePixMap(Image_PixMap theTexturePixMap)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 17
0
 public void SetImage(Image_PixMap thePixMap)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 18
0
 public bool ToPixMap(Image_PixMap theImage, V3d_ImageDumpOptions theParams)
 {
     throw new NotImplementedException();
 }
 public bool ToPixMap(Image_PixMap theImage, V3d_View theView, StdSelect_TypeOfSelectionImage theType)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 20
0
 public bool ToPixMap(Image_PixMap theImage, int theWidth, int theHeight, ref Graphic3d_BufferType theBufferType,
                      bool theToAdjustAspect, V3d_StereoDumpOptions theStereoOptions)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 21
0
 public Graphic3d_TextureMap(Image_PixMap thePixMap, Graphic3d_TypeOfTexture theType)
     : base()
 {
     throw new NotImplementedException();
 }
Exemplo n.º 22
0
 public Graphic3d_CubeMapPacked(Image_PixMap theImage, Graphic3d_ValidatedCubeMapOrder theOrder)
     : base()
 {
     throw new NotImplementedException();
 }