Title: Can't threshold as a function · Issue #265 · scijava/scijava · GitHub
Open Graph Title: Can't threshold as a function · Issue #265 · scijava/scijava
X Title: Can't threshold as a function · Issue #265 · scijava/scijava
Description: In Fiji I have a minimal script. I just want to threshold an 8-bit image: #@ OpEnvironment ops #@ ImgPlus img thresh = ops.op("threshold.mean").input(img).apply() This produces the error: Name: "threshold.mean", Types: java.util.function...
Open Graph Description: In Fiji I have a minimal script. I just want to threshold an 8-bit image: #@ OpEnvironment ops #@ ImgPlus img thresh = ops.op("threshold.mean").input(img).apply() This produces the error: Name: "th...
X Description: In Fiji I have a minimal script. I just want to threshold an 8-bit image: #@ OpEnvironment ops #@ ImgPlus img thresh = ops.op("threshold.mean").input(img).apply() This produces the error:...
Opengraph URL: https://github.com/scijava/scijava/issues/265
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Can't threshold as a function","articleBody":"In Fiji I have a minimal script. I just want to threshold an 8-bit image:\r\n\r\n```groovy\r\n#@ OpEnvironment ops\r\n#@ ImgPlus img\r\n\r\nthresh = ops.op(\"threshold.mean\").input(img).apply()\r\n```\r\n\r\nThis produces the error:\r\n\r\n```text\r\nName: \"threshold.mean\", Types: java.util.function.Function\u003cnet.imagej.ImgPlus\u003cnet.imglib2.type.numeric.integer.UnsignedByteType\u003e, org.scijava.common3.Any\u003e\r\nInput Types: \r\n\t\t* net.imagej.ImgPlus\u003cnet.imglib2.type.numeric.integer.UnsignedByteType\u003e\r\nOutput Type: \r\n\t\t* org.scijava.common3.Any\r\n\r\nPerhaps you meant one of these:\r\nthreshold.mean:\r\n\t- org.scijava.ops.image.threshold.ApplyThresholdMethod$Mean\r\n\t\t\u003e input : java.lang.Iterable\u003cT extends net.imglib2.type.numeric.RealType\u003cT\u003e\u003e\r\n\t\t\u003e output : @CONTAINER java.lang.Iterable\u003cnet.imglib2.type.logic.BitType\u003e\r\n\t- org.scijava.ops.image.threshold.mean.ComputeMeanThreshold\r\n\t\t Implements a mean threshold method by Glasbey.\r\n\t\t\u003e input : net.imglib2.histogram.Histogram1d\u003cT extends net.imglib2.type.numeric.RealType\u003cT\u003e\u003e\r\n\t\t\u003e output : @CONTAINER T\r\n```\r\n\r\nIf I run it as a computer it works:\r\n```groovy\r\nthresh = ops.op(\"create.img\").input(img, new BitType()).apply()\r\nops.op(\"threshold.triangle\").input(img).output(thresh).compute()\r\n```","author":{"url":"https://github.com/hinerm","@type":"Person","name":"hinerm"},"datePublished":"2024-08-14T15:21:03.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/265/scijava/issues/265"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2fa9d672-04e4-0943-8eb9-d8fcbec8a18a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 93A6:3AE31F:7F8D267:AA2E559:696E0A83 |
| html-safe-nonce | be542b6bc00f08d33973499346fad0a375115ac723bcc8602b29e28db4b4a7b5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5M0E2OjNBRTMxRjo3RjhEMjY3OkFBMkU1NTk6Njk2RTBBODMiLCJ2aXNpdG9yX2lkIjoiMTAzMDEyODIyMzg3OTMwMTc2MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | df91eae147f2ab13601339fb5789ee7fe4096dc93272a1a1ca5da080481a231f |
| hovercard-subject-tag | issue:2466165844 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/scijava/scijava/265/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8e2ee8ebf6cd8ecf5ca1a140565b53d67bf7d3003bee314d45437c9901b89852/scijava/scijava/issues/265 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8e2ee8ebf6cd8ecf5ca1a140565b53d67bf7d3003bee314d45437c9901b89852/scijava/scijava/issues/265 |
| og:image:alt | In Fiji I have a minimal script. I just want to threshold an 8-bit image: #@ OpEnvironment ops #@ ImgPlus img thresh = ops.op("threshold.mean").input(img).apply() This produces the error: Name: "th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | hinerm |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0b1760aa20e1a810eba6245d04e3885be7363dfe08d08b61f605c852359472e0 |
| turbo-cache-control | no-preview |
| go-import | github.com/scijava/scijava git https://github.com/scijava/scijava.git |
| octolytics-dimension-user_id | 1262770 |
| octolytics-dimension-user_login | scijava |
| octolytics-dimension-repository_id | 85618439 |
| octolytics-dimension-repository_nwo | scijava/scijava |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 85618439 |
| octolytics-dimension-repository_network_root_nwo | scijava/scijava |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 84090305cd10c2b140bf307f69f57f0892b4f215 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width