Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

17
LINES

< > BotCompany Repo | #1035894 // test_AbstractFastRegions_fastMode (old)

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (24750L) is out of date.

1  
static ImageSurface test_AbstractFastRegions_fastMode() {
2  
  set flag FastRegions_debug.
3  
  //var imgBin = randomImage2B(2);
4  
  var imgBin = new Image2B(2, 2, new byte[] { 0x0a });
5  
  var img = new Hi15Image(imgBin);
6  
  var r1 = FastRegions_Hi15Image(img);
7  
  var regions1 = r1!;
8  
  print("fastMode");
9  
  var r2 = FastRegions_Hi15Image(img).fastMode(true);
10  
  var regions2 = r2!;
11  
  print(pixels := sfu(imgBin.pixels));
12  
  printStruct(regionMatrix := r1.regionMatrix);
13  
  printStruct(regionMatrix := r2.regionMatrix);
14  
  var left = mergeBufferedImagesVertically(allToBufferedImage(map regionToBWImage(regions1)));
15  
  var right = mergeBufferedImagesVertically(allToBufferedImage(map regionToBWImage(regions2)));
16  
  ret zoomedPixelatedImageSurface(mergeBufferedImagesHorizontally(toBufferedImage(img), left, right));
17  
}

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: 178 / 210
Version history: 2 change(s)
Referenced in: [show references]