EZSequence set to NoSequence by default

12 views
Skip to first unread message

Thomas Boudier

unread,
May 23, 2017, 11:48:02 PM5/23/17
to Icy imaging
Dear ICY devs,

I would like to set a sequence field to "NoSequence" by default in some of my plugins, I tried the method setNoSequenceSelection() and put it in initialize but it does not seem to work, any idea ? Thanks.

Thomas

Alexandre Dufour

unread,
May 24, 2017, 3:53:14 PM5/24/17
to icy-so...@googlegroups.com
Hi Thomas,

Strange, I use this in some of my plugins (see Active Contours for instance) and it works. 
Do you have a specific example in mind I could have a look at?

Cheers
Alexandre



--
You received this message because you are subscribed to the Google Groups "Icy imaging" group.
To unsubscribe from this group and stop receiving emails from it, send an email to icy-software...@googlegroups.com.
To post to this group, send email to icy-so...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/icy-software/528a3d45-d8d4-4486-9fce-75a14f12a6b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Thomas Boudier

unread,
May 24, 2017, 9:47:35 PM5/24/17
to Icy imaging
Hi Alexandre,

I wanted to use this function in my plugin Watershed :

 private final EzVarDouble EZVarRadXY = new EzVarDouble("RadiusXY", 2, 0,
        100, 0.5);
    private final EzVarDouble EZVarRadZ = new EzVarDouble("RadiusZ", 2, 0, 100,
        0.5);
    private final EzVarSequence EZSequenceSignal = new EzVarSequence("Signal");
    private final EzVarSequence EZSequenceSeeds = new EzVarSequence("Seeds");
    private final EzVarSequence EZSequenceOut = new EzVarSequence("Watershed");
    private final EzVarDouble EZVarThSignal = new EzVarDouble(
        "Threshold signal", 10, 0, 65535, 1);
    private final EzVarDouble EZVarThSeeds = new EzVarDouble("Threshold seeds",
        100, 0, 65535, 1);

    @Override
    protected void initialize() {
    // TODO Auto-generated by Icy4Eclipse
    EZVarRadXY.setToolTipText(
        "The XY radius is used to compute seeds automatically as local maxima of the image, when no sequence is selected for seeds.");
    EZVarRadZ.setToolTipText(
        "The Z radius is used to compute seeds automatically as local maxima of the image, when no sequence is selected for seeds.");
    EZSequenceSignal.setToolTipText(
        "The signal image to be processed by watershed.");
    EZSequenceSeeds.setToolTipText(
        "The image containing the seeds for the watershed, if no sequence is selected, local maxima will be computed as seeds.");
    EZVarThSignal.setToolTipText(
        "Only the values from the signal image above this threshold will be processed by watershed");
    EZVarThSeeds.setToolTipText(
        "Only the values from the seeds image above this threshold will be used as seeds");
    EZSequenceSignal.setValue(getActiveSequence());
    EZSequenceSeeds.setNoSequenceSelection();
    super.addEzComponent(EZSequenceSignal);
    super.addEzComponent(EZSequenceSeeds);
    super.addEzComponent(EZVarThSignal);
    super.addEzComponent(EZVarThSeeds);
    super.addEzComponent(EZVarRadXY);
    super.addEzComponent(EZVarRadZ);
    }

Best,

Thom
as
Reply all
Reply to author
Forward
0 new messages