CodableAIA Stacksona Company

Image PNM Threshold

Applies deterministic binary thresholding to a base64 portable anymap image and returns a base64 P2 output.

Run tool

Form input

Output JSON


          

Work steps

    Inputs

    NameTypeRequiredDescription
    base64base64YesBase64 P2 or P3 image
    thresholdintegerNoThreshold value

    Outputs

    NameTypeDescription
    formattextFormat
    thresholdintegerThreshold
    base64base64Base64 thresholded image
    workarrayWork

    Sample request

    {
      "base64": "data:image/x-portable-anymap;base64,UDMKMiAyCjI1NQoyNTUgMCAwICAwIDI1NSAwICAwIDAgMjU1ICAyNTUgMjU1IDI1NQo=",
      "threshold": 128
    }