[ITK] [ITK-users] 'GetCurrentStepLength' : is not a member of 'itk::RegularStepGradientDescentOptimizerv4<TInternalComputationValueType>'

Matias Montroull matimontg at gmail.com
Wed Feb 11 14:34:58 EST 2015


Thanks Jon, I solved it by replacing the line of code which had the error
with this:
   optimizer->SetMaximumStepLength( optimizer->GetMaximumStepLength() / 4.0
);

On Wed, Feb 11, 2015 at 1:08 PM, Jon Haitz Legarreta <
jhlegarreta at vicomtech.org> wrote:

> Well, then it's ITK 4.6.1. Find whether that version of ITK has that
> member for that filter, and if yes, then the problem lies somewhere else.
>
> Try to debug and reach that file otherwise.
>
> JON HAITZ
>
>
>
> On 11 February 2015 at 16:40, Matias Montroull <matimontg at gmail.com>
> wrote:
>
>> Thanks, this is what I see in the ITKConfig.cmake:
>>
>> set(ITK_VERSION_MAJOR "4")
>> set(ITK_VERSION_MINOR "6")
>> set(ITK_VERSION_PATCH "1")
>>
>> On Wed, Feb 11, 2015 at 12:16 PM, Jon Haitz Legarreta <
>> jhlegarreta at vicomtech.org> wrote:
>>
>>> Hi Matías,
>>> I don't think it's causing the issue.
>>>
>>> You've at least one possibility: to check in your ITKConfig.cmake file
>>> (built in your binary folder) which is the value of the ITK_VERSION_MAJOR,
>>> ITK_VERSION_MINOR, and ITK_VERSION_PATCH variables (look for those strings).
>>>
>>> JON HAITZ
>>>
>>>
>>>
>>>
>>> On 11 February 2015 at 16:08, Matias Montroull <matimontg at gmail.com>
>>> wrote:
>>>
>>>> Thanks for the answer Jon,
>>>>
>>>> I actually set the flag to ON to run some ITK Apps I downloaded but I
>>>> can go back and set it to OFF if that's causing an issue.
>>>>
>>>> Is there an easy way to check which version of ITK I'm using?
>>>>
>>>> Thanks,
>>>>
>>>> Matias.
>>>>
>>>> On Wed, Feb 11, 2015 at 11:48 AM, Jon Haitz Legarreta <
>>>> jhlegarreta at vicomtech.org> wrote:
>>>>
>>>>> Hi Matias,
>>>>> are you sure this filter needs the VTK COMPATIBILITY flag to ON?
>>>>>
>>>>> On the other hand, according to the nightly doxygen (ITK 4.8.0), the
>>>>> filter does have that member, so you may want to check the ITK version you
>>>>> are actually using.
>>>>>
>>>>> HTH,
>>>>> JON HAITZ
>>>>>
>>>>>
>>>>> On 11 February 2015 at 15:28, Matias Montroull <matimontg at gmail.com>
>>>>> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I'm trying to run this example:
>>>>>>
>>>>>> http://www.itk.org/Doxygen/html/Examples_2RegistrationITKv4_2MultiResImageRegistration1_8cxx-example.html
>>>>>>
>>>>>> and I get the following compilation error:
>>>>>>
>>>>>> 'GetCurrentStepLength' : is not a member of
>>>>>> 'itk::RegularStepGradientDescentOptimizerv4<TInternalComputationValueType>'
>>>>>>
>>>>>> Any clues what I have missed? I compiled ITK with the V3
>>>>>> compatibility set to ON.
>>>>>>
>>>>>> Thank you,
>>>>>>
>>>>>> Matias.
>>>>>>
>>>>>> _____________________________________
>>>>>> Powered by www.kitware.com
>>>>>>
>>>>>> Visit other Kitware open-source projects at
>>>>>> http://www.kitware.com/opensource/opensource.html
>>>>>>
>>>>>> Kitware offers ITK Training Courses, for more information visit:
>>>>>> http://www.kitware.com/products/protraining.php
>>>>>>
>>>>>> Please keep messages on-topic and check the ITK FAQ at:
>>>>>> http://www.itk.org/Wiki/ITK_FAQ
>>>>>>
>>>>>> Follow this link to subscribe/unsubscribe:
>>>>>> http://public.kitware.com/mailman/listinfo/insight-users
>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20150211/ac22ce40/attachment.html>
-------------- next part --------------
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-users


More information about the Community mailing list