コード例 #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());
        }
コード例 #2
0
 public Graphic3d_CubeMap(Image_PixMap thePixmap, bool theToGenerateMipmaps)
     : base()
 {
     throw new NotImplementedException("Native class is abstract");
 }
コード例 #3
0
 public bool BufferDump(Image_PixMap theImage, ref Graphic3d_BufferType theBufferType)
 {
     throw new NotImplementedException();
 }
コード例 #4
0
ファイル: V3d_View.cs プロジェクト: Oblikovati/CascadeSharp
 public bool ToPixMap(Image_PixMap theImage, int theWidth, int theHeight)
 {
     throw new NotImplementedException();
 }
コード例 #5
0
ファイル: V3d_View.cs プロジェクト: Oblikovati/CascadeSharp
 public bool ToPixMap(Image_PixMap theImage, int theWidth, int theHeight, ref Graphic3d_BufferType theBufferType)
 {
     throw new NotImplementedException();
 }
コード例 #6
0
 public Graphic3d_CubeMapPacked(Image_PixMap theImage)
     : base()
 {
     throw new NotImplementedException();
 }
コード例 #7
0
 public Graphic3d_TextureEnv(Image_PixMap thePixMap)
     : base()
 {
     throw new NotImplementedException();
 }
コード例 #8
0
 public void GenerateEnvLUT(Image_PixMap theLUT)
 {
     throw new NotImplementedException();
 }
コード例 #9
0
 public Graphic3d_AspectMarker3d(Image_PixMap theTextureImage)
     : base()
 {
     throw new NotImplementedException();
 }
コード例 #10
0
 public void convertToCompatible(Image_SupportedFormats theSupported, Image_PixMap theImage)
 {
     throw new NotImplementedException();
 }
コード例 #11
0
 public void GenerateEnvLUT(Image_PixMap theLUT, uint theNbIntegralSamples)
 {
     throw new NotImplementedException();
 }
コード例 #12
0
 public Graphic3d_MarkerImage(Image_PixMap theImage)
     : base()
 {
     throw new NotImplementedException();
 }
コード例 #13
0
 public Graphic3d_HatchStyle(Image_PixMap thePattern)
     : base()
 {
     throw new NotImplementedException();
 }
コード例 #14
0
 public bool checkImage(Image_PixMap theImage, ref uint theTileNumberX)
 {
     throw new NotImplementedException();
 }
コード例 #15
0
 public Graphic3d_CubeMap(Image_PixMap thePixmap)
     : base()
 {
     throw new NotImplementedException("Native class is abstract");
 }
コード例 #16
0
 public void SetTexturePixMap(Image_PixMap theTexturePixMap)
 {
     throw new NotImplementedException();
 }
コード例 #17
0
 public void SetImage(Image_PixMap thePixMap)
 {
     throw new NotImplementedException();
 }
コード例 #18
0
ファイル: V3d_View.cs プロジェクト: Oblikovati/CascadeSharp
 public bool ToPixMap(Image_PixMap theImage, V3d_ImageDumpOptions theParams)
 {
     throw new NotImplementedException();
 }
コード例 #19
0
 public bool ToPixMap(Image_PixMap theImage, V3d_View theView, StdSelect_TypeOfSelectionImage theType)
 {
     throw new NotImplementedException();
 }
コード例 #20
0
ファイル: V3d_View.cs プロジェクト: Oblikovati/CascadeSharp
 public bool ToPixMap(Image_PixMap theImage, int theWidth, int theHeight, ref Graphic3d_BufferType theBufferType,
                      bool theToAdjustAspect, V3d_StereoDumpOptions theStereoOptions)
 {
     throw new NotImplementedException();
 }
コード例 #21
0
 public Graphic3d_TextureMap(Image_PixMap thePixMap, Graphic3d_TypeOfTexture theType)
     : base()
 {
     throw new NotImplementedException();
 }
コード例 #22
0
 public Graphic3d_CubeMapPacked(Image_PixMap theImage, Graphic3d_ValidatedCubeMapOrder theOrder)
     : base()
 {
     throw new NotImplementedException();
 }