Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Curtis Rueden
    @ctrueden
    @hadim Your user profile now exists on the wiki.
    Hadrien Mary
    @hadim
    I'll do that. Thanks for the profile.
    Curtis Rueden
    @ctrueden
    I pushed some POM changes. I am done for now. The deps could use some tweaking but it's not urgent.
    FYI:
    $ mvn dependency:analyze
    ...
    [WARNING] Used undeclared dependencies found:
    [WARNING]    org.scijava:scijava-common:jar:2.56.0:compile
    [WARNING]    io.scif:scifio:jar:0.27.2:compile
    [WARNING]    net.imglib2:imglib2:jar:2.7.0:compile
    [WARNING]    net.imagej:imagej-ops:jar:0.29.0:compile
    [WARNING]    net.imagej:imagej-common:jar:0.20.1:compile
    [WARNING] Unused declared dependencies found:
    [WARNING]    net.imagej:imagej-legacy:jar:0.20.0:runtime
    [WARNING]    junit:junit:jar:4.11:test
    I would also suggest making imagej-legacy <optional>true</optional> because you don't want others to inherit that from you.
    Hadrien Mary
    @hadim
    Ok
    Curtis Rueden
    @ctrueden
    @tpietzsch Maybe this helps you: scijava/scijava-scripts@1386a7b
    Curtis Rueden
    @ctrueden
    @hadim I totally lied about being done cleaning up that repo. I pushed some more commits. Hopefully everything is in order now. :smile:
    Hadrien Mary
    @hadim
    Nice changes. Thanks !
    tpietzsch
    @tpietzsch
    @ctrueden That's perfect, thanks! I'll try this the next time I do a bigger release
    Curtis Rueden
    @ctrueden
    @tpietzsch Great, let me know how it goes when you do. I didn't bother to explain the -v or -f or -s options but they should be simple to understand. In particular -s is nice to verify that it even constructs the pot the way you expect.
    Hadrien Mary
    @hadim
    Few questions for you @ctrueden (or anyone that can answer)
    But it always returns null.
    (that's why I fallback and use RoiManager)
    Any workaround to get the active ROI waiting for the new Overlay API.
    1. About fiji/KymographBuilder#1. Any idea what is the best way to merge two dataset along the CHANNEL axis ?
    Curtis Rueden
    @ctrueden
    @hadim I don't know the answer. But that question sounds super familiar. Did you ask it somewhere else? Or did someone else ask it on the forum maybe awhile back?
    Hadrien Mary
    @hadim
    @ctrueden I found nothing (Google or the forum)
    Curtis Rueden
    @ctrueden
    Maybe this thread? Not sure.
    Hadrien Mary
    @hadim
    All code there is IJ1 only
    Curtis Rueden
    @ctrueden
    For the second question: maybe Views.stack)?
    Hadrien Mary
    @hadim
    I am pretty sure the issue is related to IJ1/IJ2 conversion.
    I use this ImagePlus imp = ij.convert().convert(dataset, ImagePlus.class); to get the ImagePlus
    And getRoi return the correct Roi in jython...
    I'll have a look at Views.stack. Thanks
    Curtis Rueden
    @ctrueden
    The nice thing about Views is that it won't need to copy your pixels.
    But you'd have to rewrap it into a new Dataset afterward.
    Hadrien Mary
    @hadim
    Ok good to know.
    Curtis Rueden
    @ctrueden
    OK, regarding the getRoi being null: a Dataset cannot have a ROI. It can be part of an ImageDisplay which also includes other objects such as overlays. So if you convert directly from Dataset to ImagePlus then the resulting ImagePlus will never have a ROI.
    Hadrien Mary
    @hadim
    Ok so the only solution is to retrieve the ImagePlus via the IJ namespace I guess.
    Curtis Rueden
    @ctrueden
    Well, at the moment, the intended IJ2 way is to use the OverlayService to get the active overlay of an ImageDisplay.
    The ImageDisplay class is really more analogous to ImagePlus.
    And actually, those are what are mapped to one another internally.
    I'm not saying you should definitely do it that way right now. It might be more trouble than it is worth.
    Hadrien Mary
    @hadim
    I like trouble :-)
    Curtis Rueden
    @ctrueden
    Hehe.
    Hadrien Mary
    @hadim
    I didn't find how to get the ImageDisplay from a Dataset ?
    Should I iterate over idService.getImageDisplays() and test for each ImageDisplay ?
    Curtis Rueden
    @ctrueden
    Where are these Dataset objects coming from...?
    I guess I should read your code.
    But not tonight—I need to sleep now, sorry. :-/
    Hadrien Mary
    @hadim
    @Parameter(type = ItemIO.INPUT)
        private Dataset dataset;
    Curtis Rueden
    @ctrueden
    You can just change it to ImageDisplay ;-)
    Hadrien Mary
    @hadim
    yeah that's fine
    ok
    Curtis Rueden
    @ctrueden
    ImageDisplayService has a getActiveDataset which gives that back from the ImageDisplay.
    Hadrien Mary
    @hadim
    I would have prefer a method that specify the dataset but that's fine I'll do with getActiveDataset
    Curtis Rueden
    @ctrueden
    Well, it is possible for a Dataset to be present in multiple displays.
    And to have different overlays in each.
    Now, in the ImageJ 1.x UI that can't happen, really.
    Hadrien Mary
    @hadim
    Hum ok