Created
January 13, 2013 16:09
-
-
Save toshinoritakata/4524849 to your computer and use it in GitHub Desktop.
OpenCV4AndroidでRGBとAlpha画像を一つにまとめる
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
List<Mat> src = new ArrayList<Mat>(); | |
src.add(rgb); | |
src.add(alpha); | |
MatOfInt fromTo = new MatOfInt(0,0, 1,1, 2,2, 4,3); | |
List<Mat> dst = new ArrayList<Mat>(); | |
dst.add(comp); | |
Core.mixChannels(src, dst, fromTo); | |
// rgbはCV_U8C4 | |
// Listにまとめた順にチャネルに番号がつく |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment