Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Main Repositories
otb
Commits
cb132513
Commit
cb132513
authored
Apr 03, 2008
by
Cyrille Valladeau
Browse files
Creation d'un petit soucis dans le test (ExceptionMacro au lieu de MsgDebugMacro...)
parent
46564f44
Changes
1
Hide whitespace changes
Inline
Side-by-side
Testing/Code/Learning/otbSVMClassifierImage.cxx
View file @
cb132513
...
...
@@ -118,7 +118,7 @@ int otbSVMClassifierImage(int argc, char* argv[] )
classifier
->
Update
()
;
/* Build the class map */
itk
Generic
Exception
Macro
(
<<
"Output image creation"
);
otb
Generic
MsgDebug
Macro
(
<<
"Output image creation"
);
typedef
ClassifierType
::
ClassLabelType
OutputPixelType
;
typedef
otb
::
Image
<
OutputPixelType
,
Dimension
>
OutputImageType
;
...
...
@@ -146,16 +146,16 @@ int otbSVMClassifierImage(int argc, char* argv[] )
outputImage
->
Allocate
();
itk
Generic
Exception
Macro
(
<<
"classifier get output"
);
otb
Generic
MsgDebug
Macro
(
<<
"classifier get output"
);
ClassifierType
::
OutputType
*
membershipSample
=
classifier
->
GetOutput
()
;
itk
Generic
Exception
Macro
(
<<
"Sample iterators"
);
otb
Generic
MsgDebug
Macro
(
<<
"Sample iterators"
);
ClassifierType
::
OutputType
::
ConstIterator
m_iter
=
membershipSample
->
Begin
()
;
ClassifierType
::
OutputType
::
ConstIterator
m_last
=
membershipSample
->
End
()
;
itk
Generic
Exception
Macro
(
<<
"Image iterator"
);
otb
Generic
MsgDebug
Macro
(
<<
"Image iterator"
);
typedef
itk
::
ImageRegionIterator
<
OutputImageType
>
OutputIteratorType
;
OutputIteratorType
outIt
(
outputImage
,
outputImage
->
GetBufferedRegion
()
);
...
...
@@ -163,7 +163,7 @@ int otbSVMClassifierImage(int argc, char* argv[] )
outIt
.
GoToBegin
();
itk
Generic
Exception
Macro
(
<<
"Iteration for output image = "
<<
(
membershipSample
->
Size
())
);
otb
Generic
MsgDebug
Macro
(
<<
"Iteration for output image = "
<<
(
membershipSample
->
Size
())
);
while
(
m_iter
!=
m_last
&&
!
outIt
.
IsAtEnd
())
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment