[Insight-developers] VoronoiSegmentationImageFilter

Miller, James V (Research) millerjv@crd.ge.com
Mon, 21 Oct 2002 12:58:20 -0400


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C27922.940AFFBA
Content-Type: text/plain;
	charset="iso-8859-1"

More on the VoronoiSegmentation...
 
This filter has an ivar m_Var that can be set by the user or via the TakeAPrior() method.  In the 
TakeAPrior version, it looks like the standard deviation is being stored in the ivar not the
variance.
 
What was the intention? To  use variances or standard deviations?
 
The method names, ivar names, and calculations should be consistent.
 
 

-----Original Message-----
From: Miller, James V (Research) 
Sent: Monday, October 21, 2002 12:26 PM
To: Insight-developers (E-mail)
Subject: [Insight-developers] VoronoiSegmentationImageFilter


I am having problems getting the VoronoiSegmentation filter to produce any output.  

  itk::VoronoiSegmentationImageFilter<FloatImage, FloatImage>::Pointer
    voronoi=itk::VoronoiSegmentationImageFilter<FloatImage, FloatImage>::New();
  voronoi->SetInput( original->GetOutput() );
  voronoi->SetNumberOfSeeds( 100 );
  voronoi->SetOutputBoundary( false );
  voronoi->SetSteps( 500 );
  voronoi->TakeAPrior( masker->GetOutput() );
  voronoi->SetMeanPercentError(0.1);
  voronoi->SetVarPercentError(1);
  voronoi->Update();
 

The filter churns for a while but the output image is blank.

(I have toggled the OutputBoundary flag but I get a  blank image).

In terms of architecture, the prior image (used in TakeAPrior) is not one of the filter inputs, so
the filter does operate properly in the pipeline.

Jim Miller 
_____________________________________
Visualization & Computer Vision
GE Research
Bldg. KW, Room C218B
P.O. Box 8, Schenectady NY 12301

millerjv@research.ge.com <mailto:millerjv@research.ge.com> 

james.miller@research.ge.com
(518) 387-4005, Dial Comm: 8*833-4005, 
Cell: (518) 505-7065, Fax: (518) 387-6981 

 

 


------_=_NextPart_001_01C27922.940AFFBA
Content-Type: text/html;
	charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns:o = "urn:schemas-microsoft-com:office:office"><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META content="MSHTML 6.00.2715.400" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=532455416-21102002><FONT color=#0000ff size=2>More on the 
VoronoiSegmentation...</FONT></SPAN></DIV>
<DIV><SPAN class=532455416-21102002><FONT color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=532455416-21102002><FONT color=#0000ff size=2>This filter has 
an ivar m_Var that can be set by the user or via the TakeAPrior() method.&nbsp; 
In the </FONT></SPAN></DIV>
<DIV><SPAN class=532455416-21102002><FONT color=#0000ff size=2>TakeAPrior 
version, it looks like the standard deviation is being stored in the ivar not 
the variance.</FONT></SPAN></DIV>
<DIV><SPAN class=532455416-21102002><FONT color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=532455416-21102002><FONT color=#0000ff size=2>What was the 
intention? To&nbsp; use variances or standard deviations?</FONT></SPAN></DIV>
<DIV><SPAN class=532455416-21102002><FONT color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=532455416-21102002><FONT color=#0000ff size=2>The method names, 
ivar names, and calculations should be consistent.</FONT></SPAN></DIV>
<DIV><SPAN class=532455416-21102002><FONT color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=532455416-21102002><FONT color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> Miller, James V (Research) 
  <BR><B>Sent:</B> Monday, October 21, 2002 12:26 PM<BR><B>To:</B> 
  Insight-developers (E-mail)<BR><B>Subject:</B> [Insight-developers] 
  VoronoiSegmentationImageFilter<BR><BR></FONT></DIV>
  <DIV><SPAN class=794501816-21102002><FONT size=2>I am having problems getting 
  the VoronoiSegmentation filter to produce any output.&nbsp; 
  </FONT></SPAN></DIV>
  <DIV class=Section1>
  <P class=MsoNormal><FONT size=2>&nbsp; 
  itk::VoronoiSegmentationImageFilter&lt;FloatImage, 
  FloatImage&gt;::Pointer<BR>&nbsp;&nbsp;&nbsp; 
  voronoi=itk::VoronoiSegmentationImageFilter&lt;FloatImage, 
  FloatImage&gt;::New();<BR>&nbsp; voronoi-&gt;SetInput( 
  original-&gt;GetOutput() );<BR>&nbsp; voronoi-&gt;SetNumberOfSeeds( 100 
  );<BR>&nbsp; voronoi-&gt;SetOutputBoundary( false );<BR>&nbsp; 
  voronoi-&gt;SetSteps( 500 );<BR>&nbsp; voronoi-&gt;TakeAPrior( 
  masker-&gt;GetOutput() );<BR>&nbsp; 
  voronoi-&gt;SetMeanPercentError(0.1);<BR>&nbsp; 
  voronoi-&gt;SetVarPercentError(1);<BR>&nbsp; 
  voronoi-&gt;Update();<BR></FONT>&nbsp;</P>
  <P class=MsoNormal><SPAN class=794501816-21102002><FONT size=2>The filter 
  churns for a while but the output image is blank.</FONT></SPAN></P>
  <P class=MsoNormal><SPAN class=794501816-21102002><FONT size=2>(I have toggled 
  the OutputBoundary flag but I get a&nbsp; blank image).</FONT></SPAN></P>
  <P class=MsoNormal><SPAN class=794501816-21102002><FONT size=2>In terms of 
  architecture, the prior image (used in TakeAPrior) is not one of the filter 
  inputs, so the filter does operate properly in the pipeline.</FONT></SPAN></P>
  <P style="MARGIN: 0in 0in 0pt"><B><SPAN 
  style="COLOR: navy; FONT-FAMILY: 'Comic Sans MS'">Jim Miller</SPAN></B> 
  <BR><B><I><SPAN 
  style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: Arial">_____________________________________</SPAN></I></B><BR><EM><SPAN 
  style="FONT-SIZE: 7.5pt; COLOR: black; FONT-FAMILY: Arial">Visualization &amp; 
  Computer Vision</SPAN></EM><I><SPAN 
  style="FONT-SIZE: 7.5pt; COLOR: black; FONT-FAMILY: Arial"><BR><EM>GE 
  Research</EM><BR><EM>Bldg. KW, Room C218B</EM><BR><EM>P.O. Box 8, Schenectady 
  NY 12301</EM><BR><BR></SPAN></I><EM><U><SPAN 
  style="FONT-SIZE: 7.5pt; COLOR: blue"><A 
  href="mailto:millerjv@research.ge.com">millerjv@research.ge.com</A></SPAN></U></EM></P>
  <P style="MARGIN: 0in 0in 0pt"><EM><U><SPAN 
  style="FONT-SIZE: 7.5pt; COLOR: blue">james.miller@research.ge.com</SPAN></U></EM><BR><I><SPAN 
  style="FONT-SIZE: 7.5pt; COLOR: black; FONT-FAMILY: Arial">(518) 387-4005, 
  Dial Comm: 8*833-4005, </SPAN></I><BR><I><SPAN 
  style="FONT-SIZE: 7.5pt; COLOR: black; FONT-FAMILY: Arial">Cell: (518) 
  505-7065, Fax: (518) 387-6981</SPAN></I> </P>
  <P class=MsoNormal>&nbsp;<o:p></o:p></P></DIV>
  <DIV>&nbsp;</DIV></BLOCKQUOTE></BODY></HTML>

------_=_NextPart_001_01C27922.940AFFBA--