Luca,

Thanks so much for your help!  I got it working. Also thanks for letting me 
know that 1 0.5 0.5 and 10 5 5 has the same effect on the final results.

Anna

________________________________________
From: Luca Antiga [luca.ant...@orobix.com]
Sent: Wednesday, May 23, 2012 1:45 AM
To: Hoppe, Anna L
Cc: vmtk-users@lists.sourceforge.net
Subject: Re: [vmtk-users] unable to input decimal levelset evolution parameters?

Hi Anna,
 indeed this is true, we found out yesterday. It's already fixed in the source 
tree and it will be included in the 1.0.1 release (in a few days).
In the meantime, the fix is exactly analogous to the fix Ben

this

    def CharCallback(self, obj, event):
        key = self.RenderWindowInteractor.GetKeySym()
        if self.TextInputMode:
            if key == 'Return':
                self.ExitTextInputMode()
                return
            if key == 'space':
                key = ' '
            elif key == 'minus':
                key = '-'
            elif len(key) > 1 and key not in ['Backspace','BackSpace']:
                key = None
            ...

becomes

    def CharCallback(self, obj, event):
        key = self.RenderWindowInteractor.GetKeySym()
        if self.TextInputMode:
            if key == 'Return':
                self.ExitTextInputMode()
                return
            if key == 'space':
                key = ' '
            elif key == 'minus':
                key = '-'
            elif key == 'period':
                key = '.'
            elif len(key) > 1 and key not in ['Backspace','BackSpace']:
                key = None
            ...


(in short, there's an extra
            elif key == 'period':
                key = '.'
right before the last elif)



Just so you know, when you input evolution parameters, writing

1 0.5 0.5

and

10 5 5

has the exact same effect on the final solution.

Best regards


Luca


On May 22, 2012, at 11:03 PM, Hoppe, Anna L wrote:

> Hi VMTK users,
>
> I am using the vmtklevelsetsegmentation script in vmtk1.0 on a 64-bit linux 
> machine. However, I am unable to input decimals for the propogation & 
> curvature scaling parameters (needed for surface evolution). I looked up the 
> previous vmtk users post by Ben Dickerhoff a few days ago detailing the same 
> problem in vmtk1.0 for windows & I have successfully added the code to fix 
> the problem of entering negative threshold values, but I still cannot enter 
> decimal values (& did not see a similar fix mentioned). What code do I add to 
> lib/vmtk/vmtk/vmtkrenderer.py in my vmtk1.0 install folder so that decimals 
> are a valid input type?
>
> Thanks for the help,
> Anna
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> vmtk-users mailing list
> vmtk-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/vmtk-users

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
vmtk-users mailing list
vmtk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vmtk-users

Reply via email to