<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial size=2><SPAN
class=239425517-02032006>Hi,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=239425517-02032006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2>This is my main program which calls Update ( )
method on RebinHexahedronMeshTraitDataInPlaceFilter</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>typedef
itk::RebinHexahedronMeshTraitDataInPlaceFilter<MeshType, MeshType>
RebinHexahedronMeshTraitDataInPlaceFilterType;<BR>RebinHexahedronMeshTraitDataInPlaceFilterType::Pointer
rebinHexahedronMeshTraitDataInPlaceFilter =
RebinHexahedronMeshTraitDataInPlaceFilterType::New();<BR>rebinHexahedronMeshTraitDataInPlaceFilter->rebinHexahedronMeshTraitDataInPlaceFilter->SetInput(tmpMesh);<BR>rebinHexahedronMeshTraitDataInPlaceFilter->SetNumberOfHistogramBins(NumberOfBins);<BR>rebinHexahedronMeshTraitDataInPlaceFilter->Update();<BR>MeshType::Pointer
finalMesh =
rebinHexahedronMeshTraitDataInPlaceFilter->GetOutput();</FONT></DIV>
<DIV> </DIV>
<DIV><BR><FONT face=Arial><FONT size=2><SPAN class=239425517-02032006>This is
the </SPAN>GenerateData ( ) Method in
RebinHexahedronMeshTraitDataInPlaceFilter</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>template <class TInputMesh, class
TOutputMesh><BR>return
type<BR>RebinHexahedronMeshTraitDataInPlaceFilter<TInputMesh,
TOutputMesh><BR>::GenerateData()</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>{<BR> ....<BR> ....<BR> ArrayType
binValue;<BR> binValue.SetSize( m_NumberOfHistogramBins
)<BR> ....<BR> ....<BR> ....</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> return binValue;<BR>}</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Q<SPAN class=239425517-02032006>u</SPAN>estion 1)
how do I specify the return type of Generate Data so that it returns binValue (
of type ItkArray) ?<BR>Q<SPAN class=239425517-02032006>u</SPAN>estion 2) how do
I access the array which is returned by GenerateData( ) in my main program<SPAN
class=239425517-02032006> (code snippet)</SPAN> ?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks in advance</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Ritesh</FONT></DIV></BODY></HTML>