[Insight-users] How to create an array of itk::Matrix
Bill Lorensen
bill.lorensen at gmail.com
Mon Nov 26 22:48:10 EST 2012
Brad,
Does not work with VNLInstantiation
On Mon, Nov 26, 2012 at 10:26 PM, Bradley Lowekamp
<blowekamp at mail.nih.gov> wrote:
> Hrmm... What about changing the find_package line to the following:
>
> FIND_PACKAGE(ITK REQUIRED ITKCommon ITKVNL ITKVNLInstantiation )
>
> I think the libITKVNLInstantiation-4.3.a library is not getting linked.... but I have not tied this. So it's just a guess.
>
> Brad
>
>
> On Nov 26, 2012, at 7:39 PM, David Doria <daviddoria at gmail.com> wrote:
>
>> On Mon, Nov 26, 2012 at 6:47 PM, Tanweer Rashid <trash001 at odu.edu> wrote:
>>> Hi,
>>>
>>> I am trying to create an array of itk::Matrix. My code is as follows:
>>
>> Please try to simplify examples as much as you can. I can reproduce the error:
>> error: undefined reference to `vnl_matrix_fixed<double, 512u, 3u>::fill(double)'
>>
>> with the following:
>>
>> TestITK.cpp
>> ----------------
>> #include "itkMatrix.h"
>>
>> int main()
>> {
>> typedef itk::Matrix<double, 512, 3> MatrixShapeType;
>> MatrixShapeType mShapes[10];
>> mShapes[0].Fill(0);
>> }
>>
>> CMakeLists.txt
>> ---------------------
>>
>> cmake_minimum_required(VERSION 2.6)
>>
>> project(TestITK)
>>
>> FIND_PACKAGE(ITK REQUIRED ITKCommon ITKVNL)
>> INCLUDE(${ITK_USE_FILE})
>>
>> add_executable(TestITK TestITK.cpp)
>> target_link_libraries(TestITK ${ITK_LIBRARIES})
>>
>> Anyone know what the problem could be?
>>
>> David
>> _____________________________________
>> 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://www.itk.org/mailman/listinfo/insight-users
>
> _____________________________________
> 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://www.itk.org/mailman/listinfo/insight-users
--
Unpaid intern in BillsBasement at noware dot com
More information about the Insight-users
mailing list