Replies Created
-
Frederic Marion-Poll June 27, 2020 at 10:33 pm
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 March 31, 2020 at 12:02 pmPPS 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 March 31, 2020 at 11:06 amPS 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 December 2, 2019 at 4:56 pmThank 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 August 3, 2019 at 8:52 amIs 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 July 29, 2019 at 10:00 pmSolution found: call setVirtualMode just before:
Icy.getMainInterface().getMainFrame().getInspector().setVirtualMode(false);
Icy.getMainInterface().getMainFrame().getInspector().imageCacheDisabled();Frederic Marion-Poll July 2, 2019 at 11:08 amHad 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 June 26, 2019 at 7:12 pmoh! thanks. I did not guess it from reading the description of these functions.
fred
Frederic Marion-Poll June 26, 2019 at 7:10 pmoh, 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 June 25, 2019 at 10:39 pmFound 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 June 19, 2019 at 6:39 pmOh, 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 June 3, 2019 at 6:33 pmThank 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