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
f5fab7eb
Commit
f5fab7eb
authored
12 years ago
by
Aurélien Bricier
Browse files
Options
Downloads
Patches
Plain Diff
ENH: renamed texture application to HaralickTextureExtraction
parent
b8b3f50f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Applications/FeatureExtraction/CMakeLists.txt
+2
-2
2 additions, 2 deletions
Applications/FeatureExtraction/CMakeLists.txt
Applications/FeatureExtraction/otbHaralickTextureExtraction.cxx
+14
-7
14 additions, 7 deletions
...ations/FeatureExtraction/otbHaralickTextureExtraction.cxx
with
16 additions
and
9 deletions
Applications/FeatureExtraction/CMakeLists.txt
+
2
−
2
View file @
f5fab7eb
...
...
@@ -3,8 +3,8 @@ OTB_CREATE_APPLICATION(NAME LineSegmentDetection
SOURCES otbLineSegmentDetection.cxx
LINK_LIBRARIES OTBIO;OTBCommon;OTBBasicFilters
)
OTB_CREATE_APPLICATION
(
NAME TextureExtraction
SOURCES otbTextureExtraction.cxx
OTB_CREATE_APPLICATION
(
NAME
Haralick
TextureExtraction
SOURCES otb
Haralick
TextureExtraction.cxx
LINK_LIBRARIES OTBIO;OTBCommon;OTBBasicFilters
)
#OTB_CREATE_APPLICATION(NAME ComputeImageFeatures
...
...
This diff is collapsed.
Click to expand it.
Applications/FeatureExtraction/otbTextureExtraction.cxx
→
Applications/FeatureExtraction/otb
Haralick
TextureExtraction.cxx
+
14
−
7
View file @
f5fab7eb
...
...
@@ -34,11 +34,11 @@ namespace otb
namespace
Wrapper
{
class
TextureExtraction
:
public
Application
class
Haralick
TextureExtraction
:
public
Application
{
public:
/** Standard class typedefs. */
typedef
TextureExtraction
Self
;
typedef
Haralick
TextureExtraction
Self
;
typedef
Application
Superclass
;
typedef
itk
::
SmartPointer
<
Self
>
Pointer
;
typedef
itk
::
SmartPointer
<
const
Self
>
ConstPointer
;
...
...
@@ -60,18 +60,18 @@ typedef ImageListToVectorImageFilter<ImageListType, FloatVectorImageType> I
/** Standard macro */
itkNewMacro
(
Self
);
itkTypeMacro
(
TextureExtraction
,
otb
::
Application
);
itkTypeMacro
(
Haralick
TextureExtraction
,
otb
::
Application
);
private:
void
DoInit
()
{
SetName
(
"TextureExtraction"
);
SetName
(
"
Haralick
TextureExtraction"
);
SetDescription
(
"Computes textures on every pixel of the input image selected channel"
);
// Documentation
SetDocName
(
"Texture Extraction"
);
SetDocLongDescription
(
"This application computes Haralick, advanced an higher order texture on a mono band image"
);
SetDocName
(
"
Haralick
Texture Extraction"
);
SetDocLongDescription
(
"This application computes Haralick, advanced an higher order texture
s
on a mono band image"
);
SetDocLimitations
(
"None"
);
SetDocAuthors
(
"OTB-Team"
);
SetDocSeeAlso
(
"otbScalarImageToTexturesFilter, otbScalarImageToAdvancedTexturesFilter and otbScalarImageToHigherOrderTexturesFilter classes"
);
...
...
@@ -162,6 +162,13 @@ void DoUpdateParameters()
void
DoExecute
()
{
FloatVectorImageType
::
Pointer
inImage
=
GetParameterImage
(
"in"
);
inImage
->
UpdateOutputInformation
();
if
(
GetParameterInt
(
"channel"
)
>
inImage
->
GetNumberOfComponentsPerPixel
()
)
{
otbAppLogCRITICAL
(
"Selected band is not available..."
);
return
;
}
RadiusType
radius
;
radius
[
0
]
=
GetParameterInt
(
"parameters.xrad"
);
...
...
@@ -272,4 +279,4 @@ ImageListToVectorImageFilterType::Pointer m_HigConcatener;
}
}
OTB_APPLICATION_EXPORT
(
otb
::
Wrapper
::
TextureExtraction
)
OTB_APPLICATION_EXPORT
(
otb
::
Wrapper
::
Haralick
TextureExtraction
)
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