Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Youssefi
otb
Commits
f4bc32c4
Commit
f4bc32c4
authored
18 years ago
by
Julien Michel
Browse files
Options
Downloads
Patches
Plain Diff
Mise à jour doc.
parent
11642a61
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Code/Common/otbImageToVectorImageCastFilter.h
+7
-0
7 additions, 0 deletions
Code/Common/otbImageToVectorImageCastFilter.h
Code/Common/otbImageToVectorImageCastFilter.txx
+0
-67
0 additions, 67 deletions
Code/Common/otbImageToVectorImageCastFilter.txx
with
7 additions
and
67 deletions
Code/Common/otbImageToVectorImageCastFilter.h
+
7
−
0
View file @
f4bc32c4
...
...
@@ -25,6 +25,13 @@ namespace otb
{
namespace
Functor
{
/**
* \class VectorCast
* \brief This functor can be used to convert scalar value to VariableLengthVector with another precision
* a size of 1.
* \ingroup Functor
*
*/
template
<
class
TInput
,
class
TOutput
>
class
VectorCast
{
...
...
This diff is collapsed.
Click to expand it.
Code/Common/otbImageToVectorImageCastFilter.txx
deleted
100644 → 0
+
0
−
67
View file @
11642a61
/*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#ifndef __otbImageToVectorImageCastFilter_txx
#define __otbImageToVectorImageCastFilter_txx
#include "itkImageRegionIterator.h"
#include "itkImageRegionConstIterator.h"
#include "otbImageToVectorImageCastFilter.h"
namespace otb
{
template <class TInputImage, class TOutputVectorImage>
void
ImageToVectorImageCastFilter<TInputImage,TOutputVectorImage>
::GenerateData(void)
{
const InputImageType * inputPtr = this->GetInput();
OutputVectorImageType * outputPtr = this->GetOutput();
typedef itk::ImageRegionConstIterator<InputImageType> InputIteratorType;
typedef itk::ImageRegionIterator<OutputVectorImageType> OutputIteratorType;
typedef typename OutputVectorImageType::PixelType VectorPixelType;
typedef typename VectorPixelType::ValueType OutputPrecisionType;
InputIteratorType inputIt(inputPtr,inputPtr->GetRequestedRegion());
OutputIteratorType outputIt(outputPtr,outputPtr->GetRequestedRegion());
inputIt.GoToBegin();
outputIt.GoToBegin();
while((!inputIt.IsAtEnd())||(!outputIt.IsAtEnd()))
{
VectorPixelType vector;
vector.SetSize(1);
vector[0] = static_cast<OutputPrecisionType>(inputIt.Get());
outputIt.Set(vector);
++inputIt;
++outputIt;
}
}
template <class TInputImage, class TOutputVectorImage>
void
ImageToVectorImageCastFilter<TInputImage,TOutputVectorImage>
::PrintSelf(std::ostream& os, itk::Indent indent) const
{
Superclass::PrintSelf(os,indent);
}
} // end namespace otb
#endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment