[Insight-users] getmetadata from dico m image with java
Luis Ibanez
luis.ibanez at kitware.com
Sun Jun 1 12:57:16 EDT 2008
Hi 王正春,
Well, you have both options.
a) You can add to the standard wrapping the instantiations for the
MetaDataObjects that you need to extract.
or
b) You can add to the WrapITK wrapping the instantiations for the
MetaDataObjects that you need to extract.
In either case, you can follow the example of how other templated
classes are instantiated.
For the standard wrapping, please look at the directories in
Insight/Wrapping/CSwig
For WrapITK, please look at the directories in
Insight/Wrapping/WrapITK
Regards,
Luis
-------------
王正春 wrote:
> Hi Luis
>
> I am using the standard wrappping ,and not using WrapITK.
> You mean that I have to rebuild ITK turning on the WrapITK switch,and
> have to add a wrap_XXX.cmake file to WrapITK directory.
> What should the wrap_XXX.cmake as example as wrap_itkMetaDataObject.cmake
>
> Regards
> wells
>
> ----- Original Message -----
> From: "Luis Ibanez" <luis.ibanez at kitware.com
> <mailto:luis.ibanez at kitware.com>>
> To: "wells" <jake_wang1013 at 163.com <mailto:jake_wang1013 at 163.com>>
> Cc: <insight-users at itk.org <mailto:insight-users at itk.org>>
> Sent: Friday, May 30, 2008 10:52 PM
> Subject: Re: [Insight-users] getmetadata from dicom image with java
>
>
> >
> > Hi Wells,
> >
> > Are you using the standard wrapping or are you using WrapITK ?
> >
> > The MetaDataObject types are not instantiated in at all in
> > the standard wrapping.
> >
> > They are not instantiated either in WrapITK, but they are easier
> > to add there. You may have to add a wrap_...cmake file.
> >
> > You may want to use as example, the file in ExplicitITK:
> >
> > Insight/Wrapping/ExplicitITK/Modules/Common
> > wrap_itkMetaDataObject.cmake
> >
> > and make sure that you add inside the types of the meta data
> > elements that you want to extract from the MetaDataDictionary.
> >
> > Currently you will only find:
> >
> > $ cat wrap_itkMetaDataObject.cmake
> > WRAP_CLASS("itk::MetaDataObject")
> > WRAP_TEMPLATE("D" "double")
> > WRAP_TEMPLATE("F" "float")
> > WRAP_TEMPLATE("UI" "unsigned int")
> > WRAP_TEMPLATE("UL" "unsigned long")
> > END_WRAP_CLASS()
> >
> >
> > Regards,
> >
> >
> > Luis
> >
> >
> > ------------
> > wells wrote:
> >> HI, Insight-users:
> >> I try to get metadata information from dicom image using java
> >> language.source code as following:
> >>
> >>
> >> itkImageFileReaderUS2_Pointer reader =
> >> itkImageFileReaderUS2.itkImageFileReaderUS2_New();
> >> itkGDCMImageIO_Pointer dicomIO =
> itkGDCMImageIO.itkGDCMImageIO_New();
> >> reader.SetImageIO(dicomIO.GetPointer());
> >> reader.SetFileName("IM-0001-0001.dcm");
> >> reader.Update();
> >> System.out.println(reader.GetMetaDataDictionary());
> >>
> >> I get the quote of SWIGTYPE_p_itk__MetaDataDictionary ,but can not
> >> get concrete information.
> >> How can I get and edit the metadata information? can anyone help
> >> me! Thanks!
> >>
> >>
> >>
> >> Name : wells wang
> >> address : Rm. 1808, Jianda Mansion, No.223, Zhongshan Road(N),
> >> Nanjing, China, 210009
> >> Mobile Phone : (+86)013814039704
> >> Wells' Blog : http://blog.163.com/jake_wang1013
> >>
> >>
> >> _______________________________________________
> >> Insight-users mailing list
> >> Insight-users at itk.org <mailto:Insight-users at itk.org>
> >> http://www.itk.org/mailman/listinfo/insight-users
> >>
> >
>
> ------------------------------------------------------------------------
> 中 国 最 强 网 游 --- 网 易 梦 幻 西 游 ,166 万 玩 家 同 时 在 线
> <http://event.mail.163.com/chanel/click.htm?from=NO_26&domain=163>
More information about the Insight-users
mailing list