@@ -109,7 +109,7 @@ void Start ()
109
109
//create a striped background.
110
110
comicBgMat = new Mat ( texture . height , texture . width , CvType . CV_8UC1 , new Scalar ( 255 ) ) ;
111
111
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 ) ;
113
113
}
114
114
115
115
comicDstMat = new Mat ( texture . height , texture . width , CvType . CV_8UC1 ) ;
@@ -181,23 +181,23 @@ void Update ()
181
181
182
182
rgbaMat . copyTo ( outputMat , maskMat ) ;
183
183
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 ) ;
185
185
186
186
} else if ( mode == modeType . sepia ) {
187
187
188
188
Core . transform ( rgbaMat , rgbaMat , sepiaKernel ) ;
189
189
190
190
rgbaMat . copyTo ( outputMat , maskMat ) ;
191
191
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 ) ;
193
193
194
194
} else if ( mode == modeType . pixelize ) {
195
195
Imgproc . resize ( rgbaMat , pixelizeIntermediateMat , pixelizeSize0 , 0.1 , 0.1 , Imgproc . INTER_NEAREST ) ;
196
196
Imgproc . resize ( pixelizeIntermediateMat , rgbaMat , rgbaMat . size ( ) , 0.0 , 0.0 , Imgproc . INTER_NEAREST ) ;
197
197
198
198
rgbaMat . copyTo ( outputMat , maskMat ) ;
199
199
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 ) ;
201
201
202
202
} else if ( mode == modeType . comic ) {
203
203
Imgproc . cvtColor ( rgbaMat , comicGrayMat , Imgproc . COLOR_RGBA2GRAY ) ;
@@ -250,7 +250,7 @@ void Update ()
250
250
251
251
rgbaMat . copyTo ( outputMat , maskMat ) ;
252
252
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 ) ;
254
254
255
255
}
256
256
0 commit comments