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&lt;TGraph&gt;::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:&nbsp;&nbsp;
instantiated from `static
itk::SmartPointer&lt;itk::PrimMinimumSpanningTreeGraphFilter&lt;TGraph&gt;
&gt; itk::PrimMinimumSpanningTreeGraphFilter&lt;TGraph&gt;::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:&nbsp;&nbsp; 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&lt;itk::DataObject&gt;
itk::ImageToGraphFilter&lt;TInputImage, TOutputGraph,
TImageGraphFunctor&gt;::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:&nbsp;&nbsp;
instantiated from `itk::ImageToGraphFilter&lt;TInputImage,
TOutputGraph, TImageGraphFunctor&gt;::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> &lt;<a href="mailto:julien.jomier@kitware.com">julien.jomier@kitware.com</a>&gt; 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>&gt; Hello,<br>&gt;<br>&gt; How should I use the itkGetMacro variables of a filter called lets say<br>&gt; itkMST. I am writing a filter in which I have the private variable
<br>&gt; m_SpanningTree. I have a statement called<br>&gt;<br>&gt; ItkGetMacro(SpanningTree,ParentNodeType);<br>&gt;<br>&gt; In the .cxx file that I am using as an example I have written the statement:<br>&gt; MST&lt;ImageType,GraphType&gt;
<br>&gt; ParentNodeType msp;<br>&gt; msp= mst-&gt;GetSpanningTree();<br>&gt;<br>&gt; When I compile this it tells me that it can't recognise the<br>&gt; operator=(ParentNodeType*).<br>&gt;<br>&gt; What exactly should I do to correct this?
<br>&gt;<br>&gt; Sonali<br>&gt;<br>&gt;<br>&gt; ------------------------------------------------------------------------<br>&gt;<br>&gt; _______________________________________________<br>&gt; Insight-users mailing list<br>
&gt; <a href="mailto:Insight-users@itk.org">Insight-users@itk.org</a><br>&gt; <a href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a><br><br></blockquote></div><br>