[vtkusers] [Insight-users] A challenge in semi-automatic segmentation

Luis Ibanez luis.ibanez at kitware.com
Mon Oct 25 13:09:07 EDT 2010


Hi Xiaopeng,

Please look at the code in IGSTK:

   IGSTK/Source/igstkView.cxx


Search for "m_PointPicker".

---

You will find the code at:

       http://www.igstk.org

IGSTK is based on ITK and VTK.


  Regards,


        Luis

------------------------------------------------------------------------
On Tue, Oct 19, 2010 at 8:24 PM, Xiaopeng Yang <yxp233 at postech.ac.kr> wrote:

>  Dear members,
>
>
>
> Usually, when we segment liver from CT image by ITK, we need to manually
> input the seed points to our code (attached for reference), however, it is
> time demanding. What I want to achieve is that, visualize the CT image by
> VTK, then by clicking some points (seed points), they are automatically
> saved to our code. Is there any existing example in ITK & VTK for this
> purpose? If not, what is the best way to achieve the goal?
>
>
>
> #define N_SEEDS 20
>
>
>
> int main( int argc, char *argv[] )
>
> {
>
>   // seed points
>
>   long int seed_points[N_SEEDS][3] = {
>
>                                                             {     158,
> 210, 203    },
>
>                                                             {     182,
> 206, 193    },
>
>                                                             {     283,
> 186, 193    },
>
>                                                             {     318,
> 204, 188    },
>
>                                                             {     340,
> 226, 179    },
>
>                                                             {     136,
> 229, 178    },
>
>                                                             {     227,
> 180, 178    },
>
>                                                             {     343,
> 233, 178    },
>
>                                                             {     331,
> 239, 174    },
>
>                                                             {     387,
> 244, 172    },
>
>                                                             {     123,
> 287, 142    },
>
>                                                             {     197,
> 249, 142    },
>
>                                                             {     132,
> 204, 142    },
>
>                                                             {     204,
> 136, 142    },
>
>                                                             {     271,
> 196, 142    },
>
>                                                             {     288,
> 119, 142    },
>
>                                                             {     156,
> 337, 104    },
>
>                                                             {     124,
> 238, 101    },
>
>                                                             {     106,
> 207, 79     },
>
>                                                             {     87,  215,
> 35      }
>
>
>
>
>
>                                        };
>
>>
> }
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101025/a9aa04ae/attachment.htm>


More information about the vtkusers mailing list