René's URL Explorer Experiment


Title: Segmentify on stacks with 4 channels · Issue #24 · transformify-plugins/segmentify · GitHub

Open Graph Title: Segmentify on stacks with 4 channels · Issue #24 · transformify-plugins/segmentify

X Title: Segmentify on stacks with 4 channels · Issue #24 · transformify-plugins/segmentify

Description: I have seen a couple of hangups for me to use segmentify on my 4 channeled TZXY zarr stack that I have discussed with @sofroniewn, but I wanted to put it out here as well. add a binding for saving the output layer after segmenting, I use...

Open Graph Description: I have seen a couple of hangups for me to use segmentify on my 4 channeled TZXY zarr stack that I have discussed with @sofroniewn, but I wanted to put it out here as well. add a binding for saving ...

X Description: I have seen a couple of hangups for me to use segmentify on my 4 channeled TZXY zarr stack that I have discussed with @sofroniewn, but I wanted to put it out here as well. add a binding for saving ...

Opengraph URL: https://github.com/transformify-plugins/segmentify/issues/24

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Segmentify on stacks with 4 channels","articleBody":"I have seen a couple of hangups for me to use segmentify on my 4 channeled TZXY zarr stack that I have discussed with @sofroniewn, but I wanted to put it out here as well.\r\n\r\n1. add a binding for saving the output layer after segmenting, I used ipython terminal to save which is really handy, but I think it might be great to have a binding where you can go on a layer and say ctrl+s and it will save the data on the layer, maybe?\r\n\r\n2. also annotations and segmentations on 4 channeled images give different featurizers different errors. One with the hpa.pth's is that channels is expected to be 1 not greater than 1 and with filter featurizer,  gaussian etc filters expect a 2D image error. It would be great if segmenify takes only the array at which it is right at the instant, and not the whole array in the viewer to segment\r\n\r\n\r\nHere is my workaround command line tool  for this for now\r\n\r\n```\r\n\"\"\"segmentify zarr command line viewer.\r\npython3.6 segmentify/segmentify_zarr.py --zarr \"2019-07-10-17-12-23-06-f2va.mch8.4_fused_cropped.zarr/fused/fused/\"\r\n\"\"\"\r\n\r\nimport argparse\r\nimport dask.array as da\r\nfrom scipy.ndimage import zoom\r\nfrom segmentify import Viewer, gui_qt\r\n\r\n\r\ndef main(args):\r\n    \"\"\"The main Command Line Interface for Segmentify zarr\"\"\"\r\n\r\n    # parse in zarr\r\n    array = da.from_zarr(args.zarr)\r\n\r\n    # Rescale to t, z, 512, 512\r\n    assert len(array.shape) == 4\r\n    assert array.shape[2] == array.shape[3] == 2048\r\n    img = zoom(array, [1, 1, 0.25, 0.25]).astype(float)\r\n\r\n    # Click shift+n till you get the filter as the featurizer,\r\n    # more generic than using\r\n    # specific HPA Cell, nucleus etc featurizers as in README\r\n    for x in range(img.shape[0]):\r\n        for y in range(img.shape[1]):\r\n            with gui_qt():\r\n                viewer = Viewer(img[x, y, :, :].astype(float))\r\n\r\n                # TODO add a binding for saving the output layer\r\n\r\n                # Or run the below 4 lines in ipython terminal inside napari\r\n                # from skimage import imsave\r\n                # image = viewer.layers['output'].data\r\n                # path = \"groundtruth_{}_{}.png\".format(x, y)\r\n                # imsave(path, image)\r\n\r\n            # closing the viewer will show the next image to annotate\r\n            # TODO all multi channel images should be displayed at once and only\r\n            # one image can be annotated and segmeted at a time\r\n\r\n\r\nif __name__ == \"__main__\":\r\n    # parser\r\n    parser = argparse.ArgumentParser()\r\n    parser.add_argument(\"--zarr\", type=str, help=\"Zarr to view and segment.\")\r\n    args = parser.parse_args()\r\n\r\n    main(args)```\r\n","author":{"url":"https://github.com/pranathivemuri","@type":"Person","name":"pranathivemuri"},"datePublished":"2019-10-04T21:51:42.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/24/segmentify/issues/24"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:c9b6bb1a-a2f1-b205-3ac1-2602ca97a018
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8C54:10C367:1DCC2:27955:698E4DD1
html-safe-noncee4120a95ce99fb3b48a4b1b908e6b4bc1b87d0df13d19ce87a4b6973d9c3607a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QzU0OjEwQzM2NzoxRENDMjoyNzk1NTo2OThFNEREMSIsInZpc2l0b3JfaWQiOiIyNDY1MTcxMjE4MDM2MDUxNDA5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac163843d6be6bb946f64d62a449f8830d6c279077b8911165361e67fd81b22bf9
hovercard-subject-tagissue:502859411
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/transformify-plugins/segmentify/24/issue_layout
twitter:imagehttps://opengraph.githubassets.com/b4eafd192e97064582a7cde6d4ab7cd9231a70f425dddad55dc2bf65795930ad/transformify-plugins/segmentify/issues/24
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b4eafd192e97064582a7cde6d4ab7cd9231a70f425dddad55dc2bf65795930ad/transformify-plugins/segmentify/issues/24
og:image:altI have seen a couple of hangups for me to use segmentify on my 4 channeled TZXY zarr stack that I have discussed with @sofroniewn, but I wanted to put it out here as well. add a binding for saving ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepranathivemuri
hostnamegithub.com
expected-hostnamegithub.com
None0e08b85f0035d49bc4c22868f70a4d30fb8c2a777936895c37e78df095242ddc
turbo-cache-controlno-preview
go-importgithub.com/transformify-plugins/segmentify git https://github.com/transformify-plugins/segmentify.git
octolytics-dimension-user_id51755733
octolytics-dimension-user_logintransformify-plugins
octolytics-dimension-repository_id189932552
octolytics-dimension-repository_nwotransformify-plugins/segmentify
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id189932552
octolytics-dimension-repository_network_root_nwotransformify-plugins/segmentify
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseab1cf30f0feb8db377fc0d52bc41f0105f9b4181
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/transformify-plugins/segmentify/issues/24#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftransformify-plugins%2Fsegmentify%2Fissues%2F24
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftransformify-plugins%2Fsegmentify%2Fissues%2F24
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=transformify-plugins%2Fsegmentify
Reloadhttps://patch-diff.githubusercontent.com/transformify-plugins/segmentify/issues/24
Reloadhttps://patch-diff.githubusercontent.com/transformify-plugins/segmentify/issues/24
Reloadhttps://patch-diff.githubusercontent.com/transformify-plugins/segmentify/issues/24
transformify-plugins https://patch-diff.githubusercontent.com/transformify-plugins
segmentifyhttps://patch-diff.githubusercontent.com/transformify-plugins/segmentify
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Ftransformify-plugins%2Fsegmentify
Fork 8 https://patch-diff.githubusercontent.com/login?return_to=%2Ftransformify-plugins%2Fsegmentify
Star 31 https://patch-diff.githubusercontent.com/login?return_to=%2Ftransformify-plugins%2Fsegmentify
Code https://patch-diff.githubusercontent.com/transformify-plugins/segmentify
Issues 10 https://patch-diff.githubusercontent.com/transformify-plugins/segmentify/issues
Pull requests 2 https://patch-diff.githubusercontent.com/transformify-plugins/segmentify/pulls
Actions https://patch-diff.githubusercontent.com/transformify-plugins/segmentify/actions
Projects 0 https://patch-diff.githubusercontent.com/transformify-plugins/segmentify/projects
Security 0 https://patch-diff.githubusercontent.com/transformify-plugins/segmentify/security
Insights https://patch-diff.githubusercontent.com/transformify-plugins/segmentify/pulse
Code https://patch-diff.githubusercontent.com/transformify-plugins/segmentify
Issues https://patch-diff.githubusercontent.com/transformify-plugins/segmentify/issues
Pull requests https://patch-diff.githubusercontent.com/transformify-plugins/segmentify/pulls
Actions https://patch-diff.githubusercontent.com/transformify-plugins/segmentify/actions
Projects https://patch-diff.githubusercontent.com/transformify-plugins/segmentify/projects
Security https://patch-diff.githubusercontent.com/transformify-plugins/segmentify/security
Insights https://patch-diff.githubusercontent.com/transformify-plugins/segmentify/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/transformify-plugins/segmentify/issues/24
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/transformify-plugins/segmentify/issues/24
Segmentify on stacks with 4 channelshttps://patch-diff.githubusercontent.com/transformify-plugins/segmentify/issues/24#top
https://github.com/pranathivemuri
https://github.com/pranathivemuri
pranathivemurihttps://github.com/pranathivemuri
on Oct 4, 2019https://github.com/transformify-plugins/segmentify/issues/24#issue-502859411
@sofroniewnhttps://github.com/sofroniewn
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.