Created
February 27, 2020 04:35
-
-
Save tianhaoz95/4b0adb54f34a6a82a791f64920d2b98c to your computer and use it in GitHub Desktop.
Extract bits from pixels
This file contains hidden or 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
| Uint16List extractBitsFromImg(Uint16List img) { | |
| Uint16List extracted = Uint16List(img.length); | |
| for (int i = 0; i < img.length; i++) { | |
| extracted[i] = extractLastBit(img[i]); | |
| } | |
| return extracted; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment