Skip to content

Commit 45798af

Browse files
Material Engcopybara-github
authored andcommitted
Add instruction to scale image down for quantizers.
PiperOrigin-RevId: 578149463
1 parent bec7bab commit 45798af

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

extract_colors.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ First, convert an image into **an array of pixels in ARGB
1313
format**. MCU does not provide this feature; please use the idiomatic method
1414
provided by your language.
1515

16+
If the image is larger than 128 × 128 pixels, please scale the image down to 128
17+
× 128 before converting it to an array of pixels. This ensures the speed of
18+
processing.
19+
1620
For example, in Java, one may use the `BufferedImage.getRGB` method:
1721

1822
```java

0 commit comments

Comments
 (0)