@@ -109,7 +109,7 @@ void Start ()
109109 //create a striped background.
110110 comicBgMat = new Mat ( texture . height , texture . width , CvType . CV_8UC1 , new Scalar ( 255 ) ) ;
111111 for ( int i = 0 ; i < comicBgMat . rows ( ) * 2.5f ; i = i + 4 ) {
112- Core . line ( comicBgMat , new Point ( 0 , 0 + i ) , new Point ( comicBgMat . cols ( ) , - comicBgMat . cols ( ) + i ) , new Scalar ( 0 ) , 1 ) ;
112+ Imgproc . line ( comicBgMat , new Point ( 0 , 0 + i ) , new Point ( comicBgMat . cols ( ) , - comicBgMat . cols ( ) + i ) , new Scalar ( 0 ) , 1 ) ;
113113 }
114114
115115 comicDstMat = new Mat ( texture . height , texture . width , CvType . CV_8UC1 ) ;
@@ -181,23 +181,23 @@ void Update ()
181181
182182 rgbaMat . copyTo ( outputMat , maskMat ) ;
183183
184- Core . putText ( outputMat , "ORIGINAL MODE " + texture . width + "x" + texture . height , new Point ( 5 , texture . height - 5 ) , Core . FONT_HERSHEY_PLAIN , 4.0 , new Scalar ( 255 , 0 , 0 , 255 ) , 3 ) ;
184+ Imgproc . putText ( outputMat , "ORIGINAL MODE " + texture . width + "x" + texture . height , new Point ( 5 , texture . height - 5 ) , Imgproc . FONT_HERSHEY_PLAIN , 4.0 , new Scalar ( 255 , 0 , 0 , 255 ) , 3 ) ;
185185
186186 } else if ( mode == modeType . sepia ) {
187187
188188 Core . transform ( rgbaMat , rgbaMat , sepiaKernel ) ;
189189
190190 rgbaMat . copyTo ( outputMat , maskMat ) ;
191191
192- Core . putText ( outputMat , "SEPIA MODE " + texture . width + "x" + texture . height , new Point ( 5 , texture . height - 5 ) , Core . FONT_HERSHEY_PLAIN , 4.0 , new Scalar ( 255 , 0 , 0 , 255 ) , 3 ) ;
192+ Imgproc . putText ( outputMat , "SEPIA MODE " + texture . width + "x" + texture . height , new Point ( 5 , texture . height - 5 ) , Imgproc . FONT_HERSHEY_PLAIN , 4.0 , new Scalar ( 255 , 0 , 0 , 255 ) , 3 ) ;
193193
194194 } else if ( mode == modeType . pixelize ) {
195195 Imgproc . resize ( rgbaMat , pixelizeIntermediateMat , pixelizeSize0 , 0.1 , 0.1 , Imgproc . INTER_NEAREST ) ;
196196 Imgproc . resize ( pixelizeIntermediateMat , rgbaMat , rgbaMat . size ( ) , 0.0 , 0.0 , Imgproc . INTER_NEAREST ) ;
197197
198198 rgbaMat . copyTo ( outputMat , maskMat ) ;
199199
200- Core . putText ( outputMat , "PIXELIZE MODE" + texture . width + "x" + texture . height , new Point ( 5 , texture . height - 5 ) , Core . FONT_HERSHEY_PLAIN , 4.0 , new Scalar ( 255 , 0 , 0 , 255 ) , 3 ) ;
200+ Imgproc . putText ( outputMat , "PIXELIZE MODE" + texture . width + "x" + texture . height , new Point ( 5 , texture . height - 5 ) , Imgproc . FONT_HERSHEY_PLAIN , 4.0 , new Scalar ( 255 , 0 , 0 , 255 ) , 3 ) ;
201201
202202 } else if ( mode == modeType . comic ) {
203203 Imgproc . cvtColor ( rgbaMat , comicGrayMat , Imgproc . COLOR_RGBA2GRAY ) ;
@@ -250,7 +250,7 @@ void Update ()
250250
251251 rgbaMat . copyTo ( outputMat , maskMat ) ;
252252
253- Core . putText ( outputMat , "COMIC MODE " + texture . width + "x" + texture . height , new Point ( 5 , texture . height - 5 ) , Core . FONT_HERSHEY_PLAIN , 4.0 , new Scalar ( 255 , 0 , 0 , 255 ) , 3 ) ;
253+ Imgproc . putText ( outputMat , "COMIC MODE " + texture . width + "x" + texture . height , new Point ( 5 , texture . height - 5 ) , Imgproc . FONT_HERSHEY_PLAIN , 4.0 , new Scalar ( 255 , 0 , 0 , 255 ) , 3 ) ;
254254
255255 }
256256
0 commit comments