Replies Created

  • Frederic Marion-Poll

    Sorry, stupid question. I saw later that Ec-Clem uses filter toolbox with uses openCL. Should have done more search before posting.

    Frederic Marion-Poll

    PPS problem solved by listening to the Viewer. Sorry for the previous PS. But I would still be interested to understand the difference between a plain listener and a weaklistener.

    Frederic Marion-Poll

    PS more specifically, I was looking for a way to know when a viewer is displaying a different image from a sequence. I suppose I should not add a listener to the sequence, but rather to its viewer?

    Frederic Marion-Poll

    Thank you Stephane!

     

    PS Just thought about another way – trap the closing event of a sequence, clean the sequence from the ROIs and let the process continue normally? A plugin can be a sequence listener, no? or this has to be done at the level of the class containing the sequence?

     

     

    Frederic Marion-Poll

    Is this a solution?

    OMEXMLMetadata metaData = null;
    try {
    metaData = Loader.getOMEXMLMetaData(path);
    } catch (UnsupportedFormatException | IOException e) {
    e.printStackTrace();
    }
    int imageWidth = MetaDataUtil.getSizeX(metaData, 0);
    int imageHeight= MetaDataUtil.getSizeY(metaData, 0);

    Frederic Marion-Poll

    Solution found: call setVirtualMode just before:

    Icy.getMainInterface().getMainFrame().getInspector().setVirtualMode(false);
    Icy.getMainInterface().getMainFrame().getInspector().imageCacheDisabled();

    Frederic Marion-Poll

    Thank you so much again, Stephane!

    Frederic Marion-Poll

    Had a look at this example, which is quite interesting. If I understand correctly, it is a plugin which will change the behavior of all views.

    2 more questions:

    (1) Is it possible to derive a Canvas2D which will be used only by a specific class of Sequence (in my case for example, I work with a class derived from Sequence that I called “SequencePlus”). Where can I declare that SequencePlus is “associated” with my own class of Canvas2D?

    (2) where is the best place to introduce a text label to define the size of a step to browse through a pile of images? Canvas2D? Viewer? I would like to adjust the interval between consecutive images. Right now, it is “1”, but I would like to change it to 3, 5, 10, 30, etc..

    Frederic Marion-Poll

    Thank you so much, Stephane!

    Frederic Marion-Poll

    oh! thanks. I did not guess it from reading the description of these functions.

    fred

    Frederic Marion-Poll

    oh, thank you!it works indeed.

    I was wondering if there was a way to call ThreadUtil.shutdown(i), as when ThreadUtil.shutdown(), the program iterates through 2 lists of processes (instanceProcessors and bgInstanceProcessors), which meant to me that somehow, we could get the “id” ofย  any new thread created, and thus kill it later…

    fred

     

    Frederic Marion-Poll

    Found a solution, which is to include the components update (jComboBox and graphics creation) into another thread, from SwingUtilities (javax.swing.SwingUtilities):

    SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    createAndShowGUI();
    }
    });

     

    No more bug and warnings then…

    Fred

    Frederic Marion-Poll

    Oh, sure! a forum on development would be better, yes. But it is definitely different from questions about how to use Icy, plugins or protocols.

    Best,

    Fred

     

    Frederic Marion-Poll

    Thank you Stephane. Yes, I would like either to move the selected points or simply to delete them.

    The polyline2D are actually used in our CapillaryTrack plugin, to delineate the limits of territories in kymographs. Sometimes, our detection algorithm is not very efficient or there is a glitch in the video (or stack of images) and we need to correct the limit locally. In my current implementation, there is one ROI point per pixel of the image detected, which makes it quite cumbersome to edit.

    At one point, I looked at your code to find how to do it, but after a day, I thought it was not really possible.

     

    Anyway, it would be a nice feature to add to Icy – I guess I am not the only one with this type of problem.

    Fred

    Frederic Marion-Poll

    Perfect!

     

    PS By the way, the new website rocks ๐Ÿ™‚