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

32
LINES

< > BotCompany Repo | #1032027 // IIIRecognizer

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

Libraryless. Click here for Pure Java version (7425L/43K).

// A = tag type
sinterface IIIRecognizer<A> {
  // Newer version! (Override this)
  public default void run(
    IProbabilisticScheduler scheduler,
    URecognizer.Cell cell,
    IVF1<A> valueToAction) { unimplemented(); }
    
  // Clients can use. Don't override
  public default void run(
    IProbabilisticScheduler scheduler,
    IIntegralImage img,
    IVF1<A> valueToAction) {
    run(scheduler, uCell(img), valueToAction);
  }
  
  public default IProbabilisticScheduler run(
    IIntegralImage img,
    IVF1<A> valueToAction) {
    new ProbabilisticScheduler ps;
    run(ps, uCell(img), valueToAction);
    ret ps;
  }
  
  public default IProbabilisticScheduler run(
    BufferedImage img,
    IVF1<A> valueToAction) {
    new ProbabilisticScheduler ps;
    run(ps, IntegralImage(img), valueToAction);
    ret ps;
  }
}

Author comment

Began life as a copy of #1032022

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx

No comments. add comment

Snippet ID: #1032027
Snippet name: IIIRecognizer
Eternal ID of this version: #1032027/9
Text MD5: fc3d950ee5ea235cc328974bb63642a7
Transpilation MD5: 91490f09f868ba7bc49424fd09ec716a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-08-11 15:36:39
Source code size: 860 bytes / 32 lines
Pitched / IR pitched: No / No
Views / Downloads: 183 / 342
Version history: 8 change(s)
Referenced in: #1034167 - Standard Classes + Interfaces (LIVE, continuation of #1003674)