@@ -49,7 +49,7 @@ public void CreateDetectorParameters()
4949 public void GetPredefinedDictionary ( )
5050 {
5151#pragma warning disable CS8605
52- foreach ( PredefinedDictionaryName val in Enum . GetValues ( typeof ( PredefinedDictionaryName ) ) )
52+ foreach ( PredefinedDictionaryType val in Enum . GetValues ( typeof ( PredefinedDictionaryType ) ) )
5353#pragma warning restore CS8605
5454 {
5555 var dict = CvAruco . GetPredefinedDictionary ( val ) ;
@@ -61,7 +61,7 @@ public void GetPredefinedDictionary()
6161 public void ReadDictionaryFromFile ( )
6262 {
6363 var dictionaryFile = Path . Combine ( "_data" , "aruco" , "Dict6X6_1000.yaml" ) ;
64- var toCompareWith = CvAruco . GetPredefinedDictionary ( PredefinedDictionaryName . Dict6X6_1000 ) ;
64+ var toCompareWith = CvAruco . GetPredefinedDictionary ( PredefinedDictionaryType . Dict6X6_1000 ) ;
6565 var dict = CvAruco . ReadDictionary ( dictionaryFile ) ;
6666
6767 Assert . Equal ( toCompareWith . BytesList . Rows , dict . BytesList . Rows ) ;
@@ -83,7 +83,7 @@ public void ReadDictionaryFromFile()
8383 public void DetectMarkers ( )
8484 {
8585 using var image = LoadImage ( "markers_6x6_250.png" , ImreadModes . Grayscale ) ;
86- using var dict = CvAruco . GetPredefinedDictionary ( PredefinedDictionaryName . Dict6X6_250 ) ;
86+ using var dict = CvAruco . GetPredefinedDictionary ( PredefinedDictionaryType . Dict6X6_250 ) ;
8787
8888 var param = new DetectorParameters ( ) ;
8989 CvAruco . DetectMarkers ( image , dict , out _ , out _ , param , out _ ) ;
@@ -92,7 +92,7 @@ public void DetectMarkers()
9292 [ Fact ]
9393 public void DictionaryProperties ( )
9494 {
95- var dict = CvAruco . GetPredefinedDictionary ( PredefinedDictionaryName . Dict6X6_250 ) ;
95+ var dict = CvAruco . GetPredefinedDictionary ( PredefinedDictionaryType . Dict6X6_250 ) ;
9696 Assert . Equal ( 250 , dict . BytesList . Rows ) ;
9797 Assert . Equal ( 5 , dict . BytesList . Cols ) ; // (6*6 + 7)/8
9898 Assert . Equal ( 6 , dict . MarkerSize ) ;
@@ -109,7 +109,7 @@ public void DrawDetectedMarker()
109109 {
110110 using var image = LoadImage ( "markers_6x6_250.png" , ImreadModes . Grayscale ) ;
111111 using var outputImage = image . CvtColor ( ColorConversionCodes . GRAY2RGB ) ;
112- using var dict = CvAruco . GetPredefinedDictionary ( PredefinedDictionaryName . Dict6X6_250 ) ;
112+ using var dict = CvAruco . GetPredefinedDictionary ( PredefinedDictionaryType . Dict6X6_250 ) ;
113113 var param = new DetectorParameters ( ) ;
114114 CvAruco . DetectMarkers ( image , dict , out var corners , out var ids , param , out var rejectedImgPoints ) ;
115115
@@ -129,7 +129,7 @@ public void DrawDetectedMarker()
129129 public void EstimatePoseSingleMarkers ( )
130130 {
131131 using var image = LoadImage ( "markers_6x6_250.png" , ImreadModes . Grayscale ) ;
132- using var dict = CvAruco . GetPredefinedDictionary ( PredefinedDictionaryName . Dict6X6_250 ) ;
132+ using var dict = CvAruco . GetPredefinedDictionary ( PredefinedDictionaryType . Dict6X6_250 ) ;
133133 var param = new DetectorParameters ( ) ;
134134 CvAruco . DetectMarkers ( image , dict , out var corners , out _ , param , out _ ) ;
135135
0 commit comments