Transpiled version (24750L) is out of date.
static ImageSurface test_AbstractFastRegions_fastMode() { set flag FastRegions_debug. //var imgBin = randomImage2B(2); var imgBin = new Image2B(2, 2, new byte[] { 0x0a }); var img = new Hi15Image(imgBin); var r1 = FastRegions_Hi15Image(img); var regions1 = r1!; print("fastMode"); var r2 = FastRegions_Hi15Image(img).fastMode(true); var regions2 = r2!; print(pixels := sfu(imgBin.pixels)); printStruct(regionMatrix := r1.regionMatrix); printStruct(regionMatrix := r2.regionMatrix); var left = mergeBufferedImagesVertically(allToBufferedImage(map regionToBWImage(regions1))); var right = mergeBufferedImagesVertically(allToBufferedImage(map regionToBWImage(regions2))); ret zoomedPixelatedImageSurface(mergeBufferedImagesHorizontally(toBufferedImage(img), left, right)); }
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): mqqgnosmbjvj, wnsclhtenguj
No comments. add comment
Snippet ID: | #1035894 |
Snippet name: | test_AbstractFastRegions_fastMode (old) |
Eternal ID of this version: | #1035894/3 |
Text MD5: | 9cd54ae83130edcf62308817d128d964 |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2023-02-12 11:36:57 |
Source code size: | 817 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 177 / 208 |
Version history: | 2 change(s) |
Referenced in: | [show references] |