Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add small useful nodes #12

Open
3 tasks
imagejan opened this issue Nov 17, 2016 · 4 comments
Open
3 tasks

Add small useful nodes #12

imagejan opened this issue Nov 17, 2016 · 4 comments
Assignees

Comments

@imagejan
Copy link

As long as knip-scripting isn't released yet, these nodes would be nice to have:

  • Pad image (with optional {top,center,bottom} alignment for each axis), see Gitter
  • Flip images on a given axis (the current Flip horizontally fails with 1D images and ignores two pixel rows on 2D images), see Gitter
  • Single pixel labeling: convert each white pixel in a binary image to a unique label in a Labeling (i.e. a "zero-connected" CCA), see Gitter

I found workarounds for each of those, but it would be handy to have them anyways.

@dietzc dietzc self-assigned this Nov 17, 2016
@imagejan
Copy link
Author

  • Single pixel labeling

I implemented this as an IJ2 Command here: PixelLabeler.java
Feel free to port it if you like, then I don't need to install my jar files manually in each KNIME installation where I need it.

@imagejan
Copy link
Author

  • Flip images on a given axis (the current Flip horizontally fails with 1D images and ignores two pixel rows on 2D images)

See imagej/imagej-plugins-commands#2, thanks @tibuch!

@tibuch
Copy link
Member

tibuch commented Mar 30, 2017

I created two wrapped meta nodes which fixes the two pixel row ignore bug. The 1D case is not working with the wrapped meta nodes.

Just copy the nodes out of this workflow:
Flip_Horizontally_Vertically_TempFix.zip

@imagejan
Copy link
Author

Thanks @tibuch!
Here's how I had worked around it for 1D (x=n, y=1) images in November last year:

  • Resize Y by 2
  • Rotate by 180 degree
  • Max project Y
  • Dimension extend Y to be able to view it in Image Viewer ;-)

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants