7 #include "fwGdcmIO/helper/Fiducial.hpp" 9 #include "fwGdcmIO/helper/DicomDataTools.hpp" 11 #include <fwData/Image.hpp> 12 #include <fwData/PointList.hpp> 13 #include <fwData/Vector.hpp> 15 #include <fwDataTools/fieldHelper/Image.hpp> 17 #include <fwMedData/ImageSeries.hpp> 18 #include <fwMedData/SeriesDB.hpp> 30 for(const ::fwMedData::Series::sptr& series : seriesDB->
getContainer())
32 ::fwMedData::ImageSeries::sptr imageSeries = ::fwMedData::ImageSeries::dynamicCast(series);
35 ::fwData::Image::sptr image = imageSeries->getImage();
38 ::fwData::PointList::sptr pointList =
40 if(pointList && !pointList->getPoints().empty())
56 for(const ::fwMedData::Series::sptr& series : seriesDB->
getContainer())
58 ::fwMedData::ImageSeries::sptr imageSeries = ::fwMedData::ImageSeries::dynamicCast(series);
61 ::fwData::Image::sptr image = imageSeries->getImage();
64 ::fwData::Vector::sptr distanceVector =
66 if(distanceVector && !distanceVector->empty())
82 for(const ::fwMedData::Series::sptr& series : seriesDB->
getContainer())
84 ::fwMedData::ImageSeries::sptr imageSeries = ::fwMedData::ImageSeries::dynamicCast(series);
87 ::fwData::Image::csptr image = imageSeries->getImage();
90 ::fwData::Vector::sptr distanceVector =
92 if(distanceVector && !distanceVector->empty())
94 for(const ::fwData::Object::sptr&
object : distanceVector->getContainer())
96 ::fwData::PointList::sptr pointList = ::fwData::PointList::dynamicCast(
object);
97 if(pointList && pointList->getPoints().size() >= 2)
99 const ::fwData::Point::csptr point1 = *pointList->getPoints().begin();
100 const ::fwData::Point::csptr point2 = *(++pointList->getPoints().begin());
101 const size_t frameNumber1 =
103 const size_t frameNumber2 =
105 if(frameNumber1 != frameNumber2)
The namespace fwGdcmIO contains reader, writer and helper for dicom data.
This class defines a vector of objects.
static FWGDCMIO_API bool containsLandmarks(const std::shared_ptr< ::fwMedData::SeriesDB > &seriesDB)
Return true if the series contains at least one image containing landmarks.
static FWGDCMIO_API bool contains3DDistances(const std::shared_ptr< ::fwMedData::SeriesDB > &seriesDB)
Return true if the series contains at least one image containing 3D distances.
static FWGDCMIO_API bool containsDistances(const std::shared_ptr< ::fwMedData::SeriesDB > &seriesDB)
Return true if the series contains at least one image containing distances.
ContainerType & getContainer()
Series container.
This class defines a list of points.