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: patch-diff.githubusercontent.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:eb0c32d6-ca3b-9644-7303-0f1a81fe47a6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C2D4:34286F:10EFA41:1657C75:69764445 |
| html-safe-nonce | 7f27b30675cb890fc99f0741d0e1805ddc2d47dd2a66ba01dbc0b9359a2bb2f3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMkQ0OjM0Mjg2RjoxMEVGQTQxOjE2NTdDNzU6Njk3NjQ0NDUiLCJ2aXNpdG9yX2lkIjoiNDUzMDU2NDY5NTI4ODg4Mzg5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f88a6f66c31a651066466cf9b1b6f3f8076fa9d5bf290fafa920b02c197f8ebf |
| 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 | c6814b4cc7afd45cd6e64525d0cff0e76dd802f315a5b0e55a7abda1d1d070d0 |
| 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 | 4ea235bfed58ef16c8a5642b3ac64b74f10c9f52 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width