Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 12:10
    tinevez closed #23
  • 12:10
    tinevez commented #23
  • 12:09
    tinevez labeled #27
  • 12:09
    tinevez assigned #27
  • 12:09
    tinevez opened #27
  • 12:08
    tinevez assigned #26
  • 12:08
    tinevez labeled #26
  • 12:08
    tinevez opened #26
  • Oct 18 21:36

    ctrueden on fix-op-test-files-from-jar

    WIP: Try mapping the stream whe… (compare)

  • Oct 18 13:19
    tinevez closed #197
  • Oct 18 09:10
    tinevez closed #297
  • Oct 18 07:19
    RussiaVk opened #297
  • Oct 14 16:50

    tinevez on TrackMate-7.2.0

    [maven-release-plugin] prepare … (compare)

  • Oct 14 16:50

    tinevez on master

    Update license blurbs. Bump to next development cycle … (compare)

  • Oct 14 16:48

    tinevez on roi-exporter

    (compare)

  • Oct 14 16:48
    tinevez closed #190
  • Oct 14 16:48

    tinevez on master

    Hide the ExportAllSpotsStatsAct… Use the action panel log to log… An action to export spots to IJ… and 1 more (compare)

  • Oct 14 16:48
    tinevez closed #199
  • Oct 14 16:48
    tinevez opened #199
  • Oct 14 16:47

    tinevez on roi-exporter

    Hide the ExportAllSpotsStatsAct… Use the action panel log to log… An action to export spots to IJ… (compare)

NicoKiaru
@NicoKiaru
Tobias Pietzsch
@tpietzsch
hmm, maybe because the page says "InverseDistanceWeightingInterpolation" and the class is "InverseDistanceWeightingInterpolator"
Probably should change that on the wiki page
NicoKiaru
@NicoKiaru
Ah yes! Thanks!
NicoKiaru
@NicoKiaru
image.png
Yeepee. I can modify the wiki. Do you think it's worth adding an example ? Changing the name should be enough
Tobias Pietzsch
@tpietzsch
yes, changing the name is enough
feel free to add an example (your screenshot looks really nice)
kamlesh62
@kamlesh62
Hello guys i need help anyone here?
I want to import imglib2 in an android project how to achieve that is that possible?
Stephan Preibisch
@StephanPreibisch
I just checked, android projects seem to support Maven
so I’d try through Maven
but I haven’t done anything in this direction myself
kamlesh62
@kamlesh62
Can you help in on how to add the dependency do i need to download it and add it like a jar file or sync with maven repo?
Stephan Preibisch
@StephanPreibisch
you simply have to add imglib2 as a dependency
E.g.
  <dependency>
    <groupId>net.imglib2</groupId>
    <artifactId>imglib2</artifactId>
    <version>5.11.1</version>
  </dependency>
not 100% sure if you need this repository
<repositories>
    <repository>
        <id>scijava.public</id>
        <url>https://maven.scijava.org/content/groups/public</url>
    </repository>
</repositories>
kamlesh62
@kamlesh62
That helped a lot thanks
Curtis Rueden
@ctrueden

@kamlesh62 The following ImgLib2 packages use AWT, which IIUC is not part of Android Java:

  • net.imglib2.display.awt.*
  • net.imglib2.display.screenimage.awt.*

If you want to paint an ImgLib2 image into an Android Java image, you'd have to write a ScreenImage implementation for that. If you do it, and have time & interest to contribute the code, we'd love to have an imglib2-android component here to help others as well.

Furthermore, the net.imglib2.display.projector.specialized package uses net.imglib2.display.awt, and net.imglib2.display.projector.AbstractProjector2D uses net.imglib2.display.projector.specialized, so you might find yourself unable to make use of projectors at all... this could be better separated in the ImgLib2 code. But we've had reports of success using imglib2 with Android before, so maybe it's enough to just let the Dalvik bytecode compiler do its thing and most stuff works. 🤞 Keep us posted!
Curtis Rueden
@ctrueden
@tpietzsch @NicoKiaru Be aware that ImgLib2 Examples wiki page is also replicated as a Jupyter notebook, which had the same typo. I fixed it: imagej/tutorials@fa752e2
kamlesh62
@kamlesh62
I only want results of particle analysis on set of images i am trying it out now will update
Jan Eglinger
@imagejan
Is there something in imglib2-roi that defines “everything to one side of a given line”? Such that I can e.g. combine a circle ROI with an arbitrary (inclined) line in 2D to get a section of the circle?
1 reply
Curtis Rueden
@ctrueden
@tpietzsch @axtimwalde @StephanPreibisch How are you feeling about imglib2-script these days? There was a conversation in an issue >1.5 years ago now (https://github.com/imglib/imglib2-script/pull/2#issuecomment-578395203) where Albert said he is not maintaining the component anymore. Do you think we need to keep this component working as imglib2 continues to evolve? Or should we discontinue it and break any existing scripts still using it?
Tobias Pietzsch
@tpietzsch
I would discontinue it (for now, maybe somebody using it steps up to maintain it)
Stephan Preibisch
@StephanPreibisch
I have never used it myself tbh …
Tobias Pietzsch
@tpietzsch
me neither
Curtis Rueden
@ctrueden
Thanks guys. I retired it: imglib/imglib2-script@d3347cb, scijava/pom-scijava@2b6c66f. I merge the only outstanding PR and cut a final release 0.2.5, just in case anyone still needs it. I also updated the developers + contributors to reflect that it is retired.
Tobias Pietzsch
@tpietzsch
Arrays.setAll(new String[10], Integer::new);
compiles
public static <T> void setAll(T[] array, IntFunction<? extends T> generator)
this looks typesafe
but actually it will always escalate to T==Object if necessary
:-|
(TIL)
Stephan Saalfeld
@axtimwalde
weird
Curtis Rueden
@ctrueden

An instance of the problem with Java's typing policy with arrays, right? This also compiles:

String[] s = {"hello", "world"};
Object[] o = s;
o[0] = new Object();

And throws ArrayStoreException for the same reason. So I don't think the fault is with java.util.Arrays, per se.

Same as how ImgLib2's type hierarchy is right-side up for getters, but upside down for setters, eh?
Stephan Saalfeld
@axtimwalde
nah, the setter/ getter thing is a design flaw that could be fixed by separating the getter and setter interfaces, the array situation is a language decision that cannot be fixed, but is ok to live with
Philipp Hanslovsky
@hanslovsky
That is a little scary. Good to know, thanks for sharing. I figure, the only way for Java to solve this would be to disallow implicit casting (never going to happen, of course). I don't see any other way to have this fail at compile time
Philipp Hanslovsky
@hanslovsky
Not as evil as c++ (at least Arrays.setAll throws an exception at runtime)
int x = ...
if (x = 0) { /* do stuff */ }
Most c++ compiler will display a warning for that (and error on warning is generally a good idea in cpp)
Curtis Rueden
@ctrueden

@hanslovsky wrote:

I don't see any other way to have this fail at compile time

Array types are covariant (can assign from specific to more general element type), but shouldn't be. Have a syntax to distinguish between "read-only" and "write-only" modes (i.e. upper bounded versus lower bounded), where you can assign from more-to-less specific in read mode, and less-to-more specific in write mode.

CharSequence[] words = {"hello", "world"};
Object>[] readonly = words;
Object o = readonly[0]; // allowed -- all elements are subtypes of Object
readonly[0] = new Object(); // compile error -- storage type may be more specific than Object
String<[] writeonly = words;
writeonly[0] = "goodbye"; // allowed -- String is a subtype of CharSequence
String s = writeonly[0]; // compile error -- element might not be a String

Or maybe there is a way to do it with the existing generic syntax with T extends and T super on the element types, I dunno...

Eugene Katrukha
@ekatrukha
Hello everybody. Quick question, there was a class for n-dimentional Bresenham line in net.imglib2.algorithm.region, but it is not there anymore. Can you please help me find where it was moved?
Eugene Katrukha
@ekatrukha
thank you!