Git Product home page Git Product logo

Comments (15)

haesleinhuepf avatar haesleinhuepf commented on May 29, 2024 1

Hey @frauzufall ,

I ❤️ your initiative! There are indeed some things I've never managed in ImageJ2 and would love to learn how to do them. I link some half-backed solutions for these questions and some solutions only in ImageJ1:

Thanks again for your efforts! If you point me to better solutions answering my questions, I'm happy to help to write the HowTo-code 🎄

Cheers,
Robert

from tutorials.

frauzufall avatar frauzufall commented on May 29, 2024 1

@haesleinhuepf cool! I added a readme and template to #79. Let me know if it's useful or needs improvement!

from tutorials.

frauzufall avatar frauzufall commented on May 29, 2024

Hi Robert, thanks for the questions and links, I'll look into it! Btw, here is a PR with some improvements from the discussion in the last PR #79

Another quite straightforward thing to do would be to translate these IJ2 script templates into Java.. And sort them into the HowTos.. And vice versa. (Though I would prefer groovy) Then the HowTos would also be available from the script editor directly as templates. And if @ctrueden or someone else finds a way to do the translation automatically at some point, even better!

from tutorials.

haesleinhuepf avatar haesleinhuepf commented on May 29, 2024

Hey @frauzufall

Great! I'm happy to take the translation of the scripts over. For 11 files I would not invent an automatic translation algorithm ;-)

Is there a HOWTO-template and short description available of what a HOWTO-writer should take into account?

Thanks!

🐰

from tutorials.

haesleinhuepf avatar haesleinhuepf commented on May 29, 2024

Hey @frauzufall,

while translating the script templates, some additional questions came up:

I may add some more while translating ;-)

from tutorials.

lhilbert avatar lhilbert commented on May 29, 2024

How to carry out pixel level mathematical operations like I can in Matlab? Full access to indices, values, logical operations etc.

from tutorials.

imagejan avatar imagejan commented on May 29, 2024

@haesleinhuepf wrote:

How to iterate a HyperSphere in Java

HyperSphere<T> implements Iterable<T>, so it should work exactly as in the Jython example, no?

from tutorials.

haesleinhuepf avatar haesleinhuepf commented on May 29, 2024

it should work exactly as in the Jython example, no?

I couldn't find out how. My IntelliJ gives a bit a weird error message

image

from tutorials.

imagejan avatar imagejan commented on May 29, 2024

In this ImgLib2 example it seems to work.

from tutorials.

haesleinhuepf avatar haesleinhuepf commented on May 29, 2024

I think the problem is, neither IntelliJ nor the code writer can know what U is. A problem introduced by Java generics....

from tutorials.

imagejan avatar imagejan commented on May 29, 2024

neither IntelliJ nor the code writer can know what U is.

That's why you have to put U extends RealType< U > in the class/method signature, as shown in the example as well. I'd be very surprised if IntelliJ couldn't handle generics well. I'd recommend using Eclipse then ;-)

from tutorials.

haesleinhuepf avatar haesleinhuepf commented on May 29, 2024

That's why you have to put U extends RealType< U >

But it's DoubleType and not RealType<U>, look here:
https://github.com/imagej/tutorials/blob/adding_scripting_templates/howtos/src/main/java/howto/processing/CreateAndConvolvePoints.java#L60

from tutorials.

imagejan avatar imagejan commented on May 29, 2024

I added a point by editing the ↗️ original post.

from tutorials.

ctrueden avatar ctrueden commented on May 29, 2024

I merged #79, in case that affects the checklist here at all.

from tutorials.

frauzufall avatar frauzufall commented on May 29, 2024

Thanks @ctrueden!

@haesleinhuepf, do you plan to continue with the scripts or should I continue from you branch https://github.com/imagej/tutorials/commits/adding_scripting_templates? Should we go over it together at some point?

from tutorials.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.