Skip to content

Commit

Permalink
fix CV_8UC4 to CV_8UC3 for rgb mat
Browse files Browse the repository at this point in the history
  • Loading branch information
gordinmitya committed Aug 11, 2020
1 parent ab75284 commit 280ae48
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class OpenCVConverter() : ImageConverter {
}
val yuvMat =
Mat(image.height + image.height / 2, image.width, CvType.CV_8UC1, converted.buffer)
val rgbMat = Mat(image.height, image.width, CvType.CV_8UC4)
val rgbMat = Mat(image.height, image.width, CvType.CV_8UC3)
Imgproc.cvtColor(yuvMat, rgbMat, format)

val tokColor = System.currentTimeMillis()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class OpenCVRoteterter() : ImageConverter {
}
val tRotateEnd = System.currentTimeMillis()

val rgbMat = Mat(image.height, image.width, CvType.CV_8UC4)
val rgbMat = Mat(image.height, image.width, CvType.CV_8UC3)

Imgproc.cvtColorTwoPlane(yMat, uvMat, rgbMat, format)

Expand Down

0 comments on commit 280ae48

Please sign in to comment.