Hello,<br>
<br>
Thank you so much. I was able to resolve that. I read in another old
thread that if you use arrays then the itkSetMacro and itkGetMacro
wouldn't work. <br>
<br>
I had used itkSetObjectMacro and itkGetObjectMacro as well. It didn't work. <br>
<br>
I now have another problem. After resolving most of it I stumbled upon
these types of errors and it seems to be singling out the itkTypeMacro
in my code:<br>
<br>
<span style="background-color: rgb(255, 204, 255);">[100%] Building CXX object CMakeFiles/PrimMinimumSpanningTree.dir/PrimMinimumSpanningTree.o</span><br style="background-color: rgb(255, 204, 255);">
<span style="background-color: rgb(255, 204, 255);">/home/sbarua/GraphAlgorithms/itkGraphTrial/ExamplePipeline4/itkPrimMinimumSpanningTreeGraphFilter.txx:
In constructor
`itk::PrimMinimumSpanningTreeGraphFilter<TGraph>::PrimMinimumSpanningTreeGraphFilter()
[with TGraph = main(int, char**)::GraphType]':</span><br style="background-color: rgb(255, 204, 255);">
<span style="background-color: rgb(255, 204, 255);">/home/sbarua/GraphAlgorithms/itkGraphTrial/ExamplePipeline4/itkPrimMinimumSpanningTreeGraphFilter.h:31:
instantiated from `static
itk::SmartPointer<itk::PrimMinimumSpanningTreeGraphFilter<TGraph>
> itk::PrimMinimumSpanningTreeGraphFilter<TGraph>::New() [with
TGraph = main(int, char**)::GraphType]'</span><br style="background-color: rgb(255, 204, 255);">
<span style="background-color: rgb(255, 204, 255);">/home/sbarua/GraphAlgorithms/itkGraphTrial/ExamplePipeline4/PrimMinimumSpanningTree.cxx:84: instantiated from here</span><br style="background-color: rgb(255, 204, 255);">
<span style="background-color: rgb(255, 204, 255);">/home/sbarua/GraphAlgorithms/itkGraphTrial/ExamplePipeline4/itkPrimMinimumSpanningTreeGraphFilter.txx:23:
error: non-lvalue in assignment</span><br style="background-color: rgb(255, 204, 255);">
<span style="background-color: rgb(255, 204, 255);">/home/sbarua/GraphAlgorithms/itkGraphTrial/ExamplePipeline4/itkImageToGraphFilter.txx:
In member function `itk::SmartPointer<itk::DataObject>
itk::ImageToGraphFilter<TInputImage, TOutputGraph,
TImageGraphFunctor>::MakeOutput(unsigned int) [with TInputImage =
main(int, char**)::ImageType, TOutputGraph = main(int,
char**)::GraphType, TImageGraphFunctor = main(int,
char**)::ImageToGraphFunctorType]':</span><br style="background-color: rgb(255, 204, 255);">
<span style="background-color: rgb(255, 204, 255);">/home/sbarua/GraphAlgorithms/itkGraphTrial/ExamplePipeline4/itkImageToGraphFilter.txx:23:
instantiated from `itk::ImageToGraphFilter<TInputImage,
TOutputGraph, TImageGraphFunctor>::ImageToGraphFilter() [with
TInputImage = main(int, char**)::ImageType, TOutputGraph = main(int,
char**)::GraphType, TImageGraphFunctor = main(int,
char**)::ImageToGraphFunctorType]'<br>
<br>
<span style="background-color: rgb(255, 255, 255);">I don't have any idea what the error means.<br>
<br>
-- Sonali.<br style="background-color: rgb(255, 204, 255);">
</span></span><br><div><span class="gmail_quote">On 10/17/06, <b class="gmail_sendername">Julien Jomier</b> <<a href="mailto:julien.jomier@kitware.com">julien.jomier@kitware.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello Sonali,<br><br>The itkSet/GetMacro() works only with standard types (not pointers).<br>If you are using smart pointers to define the m_SpanningTree variable<br>then you can use the itkSet/GetObjectMacro().<br>Otherwise you will have to write your own Set/Get functions.
<br><br>Let us know if you have any further problems,<br><br>Julien<br><br>Sonali Barua wrote:<br>> Hello,<br>><br>> How should I use the itkGetMacro variables of a filter called lets say<br>> itkMST. I am writing a filter in which I have the private variable
<br>> m_SpanningTree. I have a statement called<br>><br>> ItkGetMacro(SpanningTree,ParentNodeType);<br>><br>> In the .cxx file that I am using as an example I have written the statement:<br>> MST<ImageType,GraphType>
<br>> ParentNodeType msp;<br>> msp= mst->GetSpanningTree();<br>><br>> When I compile this it tells me that it can't recognise the<br>> operator=(ParentNodeType*).<br>><br>> What exactly should I do to correct this?
<br>><br>> Sonali<br>><br>><br>> ------------------------------------------------------------------------<br>><br>> _______________________________________________<br>> Insight-users mailing list<br>
> <a href="mailto:Insight-users@itk.org">Insight-users@itk.org</a><br>> <a href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a><br><br></blockquote></div><br>