Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ImageINSA_Tanguy
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
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
Tanguy.Raufflet
ImageINSA_Tanguy
Commits
65ccb765
Commit
65ccb765
authored
6 years ago
by
Provot Bertrand
Browse files
Options
Downloads
Patches
Plain Diff
Titre des fenêtres pyramid plsu précis (filtre et type)
parent
3bc2d655
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/Operations/PyramidOp.cpp
+14
-1
14 additions, 1 deletion
app/Operations/PyramidOp.cpp
with
14 additions
and
1 deletion
app/Operations/PyramidOp.cpp
+
14
−
1
View file @
65ccb765
...
...
@@ -60,21 +60,34 @@ void PyramidOp::operator()(const imagein::Image* img, const std::map<const image
string
s
;
string
e
;
Pyramid
::
Filtre
filtre
=
dialog
->
getFilter
(
e
);
QString
titleFilter
;
QString
titleType
;
if
(
e
==
"Decomposition pyramidale avec filtre gaussien :
\n
"
)
titleType
=
QString
(
qApp
->
translate
(
"Operations"
,
"Gaussian filter"
));
else
if
(
e
==
"Decomposition pyramidale avec filtre trimodal :
\n
"
)
titleType
=
QString
(
qApp
->
translate
(
"Operations"
,
"Trimodal filter"
));
else
if
(
e
==
"Decomposition pyramidale avec filtre rectangulaire :
\n
"
)
titleType
=
QString
(
qApp
->
translate
(
"Operations"
,
"Rectangular filter"
));
else
if
(
e
==
"Decomposition pyramidale avec filtre qmf :
\n
"
)
titleType
=
QString
(
qApp
->
translate
(
"Operations"
,
"QMF filter"
));
else
if
(
e
==
"Decomposition pyramidale avec filtre triangulaire :
\n
"
)
titleType
=
QString
(
qApp
->
translate
(
"Operations"
,
"Triangular filter"
));
try
{
if
(
dialog
->
onlyOneStep
())
{
if
(
dialog
->
isGaussian
())
{
resImg
=
Pyramid
::
n_pyram_g
(
image
,
dialog
->
onlyStep
(),
filtre
);
titleFilter
=
QString
(
qApp
->
translate
(
"Operations"
,
"Gaussian pyramidal decomposition"
));
}
else
{
resImg
=
Pyramid
::
n_pyram_l
(
image
,
dialog
->
onlyStep
(),
filtre
);
titleFilter
=
QString
(
qApp
->
translate
(
"Operations"
,
"Laplacian pyramidal decomposition"
));
}
}
else
{
if
(
dialog
->
isGaussian
())
{
resImg
=
Pyramid
::
pyram_g
(
image
,
dialog
->
getNbStep
(),
filtre
,
s
);
titleFilter
=
QString
(
qApp
->
translate
(
"Operations"
,
"Gaussian pyramidal decomposition"
));
}
else
{
resImg
=
Pyramid
::
pyram_l
(
image
,
dialog
->
getNbStep
(),
filtre
,
s
);
titleFilter
=
QString
(
qApp
->
translate
(
"Operations"
,
"Laplacian pyramidal decomposition"
));
}
}
}
...
...
@@ -82,7 +95,7 @@ void PyramidOp::operator()(const imagein::Image* img, const std::map<const image
QMessageBox
::
critical
(
NULL
,
"Error"
,
QString
(
e
));
return
;
}
outImage
(
resImg
,
"Pyramid"
);
outImage
(
resImg
,
titleFilter
.
toStdString
()
+
" - "
+
titleType
.
toStdString
()
);
outText
(
e
);
outText
(
s
);
}
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