[ITK] use remote module

Dženan Zukić dzenanz at gmail.com
Thu Sep 8 10:19:22 EDT 2016


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/2fb74713/attachment.html>


More information about the Community mailing list