<div dir="ltr">So the VTK method names (in VTK 6 style) would be these:<div><br></div><div>SetReferenceImageConnection()</div><div>SetReferenceImageData()</div><div>GetReferenceImage()</div><div><br></div><div>But, yes, I'm tempted to use SetInputImage() and not use the Data suffix.</div><div><br></div><div> - David</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 30, 2015 at 3:29 PM, Bill Lorensen <span dir="ltr"><<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Since vtkImageChangeInformation deals with images, I think<br>
SetReferenceImage is a logical choice.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On Tue, Jun 30, 2015 at 5:26 PM, Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>> wrote:<br>
> In ITK we use ReferenceImage in the itkChangeInformationImageFilter.<br>
><br>
> On Tue, Jun 30, 2015 at 5:09 PM, David Gobbi <<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>> wrote:<br>
>> Hi All,<br>
>><br>
>> I have three filters in VTK that have a method called<br>
>> "SetInformationInput()", but the method name is confusing and I'm seeking<br>
>> advice on how to change it.<br>
>><br>
>> The method's purpose it to provide a reference image. For example,<br>
>> vtkImageChangeInformation has two inputs: the first image provides the voxel<br>
>> data, and the 2nd input provides a reference image that has the desired<br>
>> voxel spacing and origin. Another example is vtkImageReslice, which can<br>
>> resample its first input by using the spacing & origin of a second input.<br>
>><br>
>> I looked to see if any geometry filters to see if any of them had a good<br>
>> name for such an input, and I found that vtkProbeFilter and vtkGlyph3D use<br>
>> the name "SetSourceConnection()". That name doesn't sound right for the<br>
>> image filters.<br>
>><br>
>> So, I'm thinking of renaming<br>
>> vtkImageChangeInformation::SetInformationInputData() as follows, to make its<br>
>> meaning more apparent:<br>
>><br>
>> SetReferenceData() - accepts a vtkDataObject<br>
>> SetReferenceConnection() - creates a pipeline connection<br>
>><br>
>> Imaging scientists generally understand what is meant by a "reference" image<br>
>> in this context. The old method (which only accepts data, not a pipeline<br>
>> connection) would be deprecated in VTK 7.<br>
>><br>
>> Any thoughts?<br>
>><br>
>> - David<br>
>><br>
>><br>
>><br>
>><br>
>><br>
>> _______________________________________________<br>
>> Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
>><br>
>> Visit other Kitware open-source projects at<br>
>> <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>><br>
>> Search the list archives at: <a href="http://markmail.org/search/?q=vtk-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtk-developers</a><br>
>><br>
>> Follow this link to subscribe/unsubscribe:<br>
>> <a href="http://public.kitware.com/mailman/listinfo/vtk-developers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtk-developers</a><br>
>><br>
>><br>
><br>
><br>
><br>
> --<br>
> Unpaid intern in BillsBasement at noware dot com<br>
<br>
<br>
<br>
--<br>
Unpaid intern in BillsBasement at noware dot com<br>
</div></div></blockquote></div><br></div>