Commit 6948835b authored by Laurențiu Nicola's avatar Laurențiu Nicola

Merge branch 'remotesensingregion-ctors' into 'develop'

COMP: Remove RemoteSensingRegion assignment operator

See merge request !679
parents ee440ec3 629cdfd2
Pipeline #3658 passed with stages
in 126 minutes and 31 seconds
......@@ -73,7 +73,7 @@ public:
/** Index typedef support. An index is used to access pixel values. */
typedef itk::ContinuousIndex<Type> IndexType;
typedef itk::Point<Type, 2> PointType;
typedef itk::Point<Type, 2> PointType;
/** Size typedef support. A size is used to define region bounds. */
typedef itk::ContinuousIndex<Type> SizeType;
......@@ -91,36 +91,18 @@ public:
* counted, so the constructor is public. Default dimension is 2. */
RemoteSensingRegion()
{
m_InputProjectionRef = "";
m_Size.Fill(0.);
m_Index.Fill(0.);
}
/** Constructor. RemoteSensingRegion is a lightweight object that is not reference
* counted, so the constructor is public. Default dimension is 2. */
* counted, so the constructor is public. Default dimension is 2. */
RemoteSensingRegion(const itk::ImageRegion<2>& region)
{
m_InputProjectionRef = "";
m_Size[0] = region.GetSize()[0];
m_Size[1] = region.GetSize()[1];
m_Index[0] = region.GetIndex()[0];
m_Index[1] = region.GetIndex()[1];
}
/** Destructor. RemoteSensingRegion is a lightweight object that is not reference
* counted, so the destructor is public. */
~RemoteSensingRegion() override
{
}
/** operator=. RemoteSensingRegion is a lightweight object that is not reference
* counted, so operator= is public. */
void operator=(const Self& region)
{
m_Index = region.m_Index;
m_Size = region.m_Size;
m_InputProjectionRef = region.m_InputProjectionRef;
m_KeywordList = region.m_KeywordList;
m_Size[0] = region.GetSize()[0];
m_Size[1] = region.GetSize()[1];
m_Index[0] = region.GetIndex()[0];
m_Index[1] = region.GetIndex()[1];
}
/** This method provides explicit conversion to itk::ImageRegion<2>,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment