Skip to content
Snippets Groups Projects
Commit 6948835b authored by Laurențiu Nicola's avatar Laurențiu Nicola
Browse files

Merge branch 'remotesensingregion-ctors' into 'develop'

COMP: Remove RemoteSensingRegion assignment operator

See merge request orfeotoolbox/otb!679
parents ee440ec3 629cdfd2
No related branches found
No related tags found
No related merge requests found
......@@ -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>,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment