[ITK] use remote module

Wei Liu weiliu620 at gmail.com
Thu Sep 8 11:44:30 EDT 2016


Dženan,

The module compiles no error in ITK. I"m using one of the filters defined
by the module and had a build error in my code, so I'm not sure if I should
create bug fix request. I'll study it a bit more and decide.

Thanks,


On Thu, Sep 8, 2016 at 10:19 AM, Dženan Zukić <dzenanz at gmail.com> wrote:

> Consider making a pull request
> <https://yangsu.github.io/pull-request-tutorial/> with your fixes.
>
> Regards,
> Dženan
>
> On Wed, Sep 7, 2016 at 2:04 PM, Wei Liu <weiliu620 at gmail.com> wrote:
>
>> Oops, I incorrectly used another ITK build...After I fixed it, my project
>> can find the external module.
>>
>> Sorry about the noise. (often found the true reason *after* sending email
>> to community!)
>>
>> The filter has a few small build error that can be easily fixed (add
>> namespace, etc).
>>
>> On Wed, Sep 7, 2016 at 1:53 PM, Wei Liu <weiliu620 at gmail.com> wrote:
>>
>>> Bill, I want to apply the filter to a 3D image that I read from file.
>>> Here is the related code:
>>>
>>> ------------ code ----------------------
>>>      typedef float InputPixelType;
>>>      typedef itk::Image< InputPixelType, 3 > InputImageType;
>>>      typedef itk::SymmetricSecondRankTensor< float, 3 > TensorType;
>>>      typedef itk::Image< TensorType, 3 > TensorImageType;
>>>      typedef itk::CovariantVector<float, 3>   EigenvalueType;
>>>      typedef itk::Image< EigenvalueType, 3 > EigenvalueImageType;
>>>
>>>      typedef itk::ImageFileReader< InputImageType >  ReaderType;
>>>      ReaderType::Pointer reader = ReaderType::New();
>>>      std::string in_file = "unknown.nrrd";
>>>      bool retm = parser->GetCommandLineArgument( "-i", in_file);
>>>      reader->SetFileName( in_file );
>>>      reader->Update();
>>>
>>>      // Structure tensor.
>>>      typedef itk::StructureTensorImageFilter<InputImageType,
>>> TensorImageType> StructureTensorFilterType;
>>>      StructureTensorFilterType::Pointer struct_tensor_filter =
>>> StructureTensorFilterType::New();
>>>      struct_tensor_filter->SetInput(reader->GetOutput() );
>>> ---------- end of code ------------------------
>>>
>>> I just copied the file .h and .hxx file from the itk source folder into
>>> my project folder and cmake compiles with no error. So, at least this is
>>> one solution.
>>>
>>> Thanks,
>>>
>>>
>>>
>>> On Wed, Sep 7, 2016 at 12:13 PM, Bill Lorensen <bill.lorensen at gmail.com>
>>> wrote:
>>>
>>>> How are you using it?
>>>>
>>>> On Wed, Sep 7, 2016 at 11:55 AM, Wei Liu <weiliu620 at gmail.com> wrote:
>>>> > Hi communities,
>>>> >
>>>> > When I try to use a remote module (anisotropic diffusion LBR) in my
>>>> code, I
>>>> > got error that the 'itkstructureTensorImageFilter.h' no such file...
>>>> >
>>>> > I have turned on the cmake flag when building ITK. Do I need to do
>>>> anything
>>>> > specific to use remote module's code?
>>>> >
>>>> > I probably can manually copy the .h file, but think it's not the
>>>> optimal
>>>> > approach.
>>>> >
>>>> > Thanks,
>>>> >
>>>> > _______________________________________________
>>>> > Community mailing list
>>>> > Community at itk.org
>>>> > http://public.kitware.com/mailman/listinfo/community
>>>> >
>>>>
>>>>
>>>>
>>>> --
>>>> Unpaid intern in BillsBasement at noware dot com
>>>>
>>>
>>>
>>
>> _______________________________________________
>> Community mailing list
>> Community at itk.org
>> http://public.kitware.com/mailman/listinfo/community
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20160908/c2b3426b/attachment.html>


More information about the Community mailing list