Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
monticore
EmbeddedMontiArc
generators
EMAM2Cpp
Commits
0163b2c1
Commit
0163b2c1
authored
Nov 07, 2020
by
Malte Heithoff
Browse files
OpenCV Dependencies
parent
507737af
Pipeline
#354652
passed with stage
in 14 minutes and 11 seconds
Changes
9
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/de/monticore/lang/monticar/generator/cpp/commands/BoundingRectCommand.java
View file @
0163b2c1
...
...
@@ -5,6 +5,7 @@ import de.monticore.lang.math._symboltable.matrix.MathMatrixAccessSymbol;
import
de.monticore.lang.math._symboltable.matrix.MathMatrixNameExpressionSymbol
;
import
de.monticore.lang.monticar.generator.EMAMBluePrint
;
import
de.monticore.lang.monticar.generator.MathCommand
;
import
de.monticore.lang.monticar.generator.cmake.CMakeFindModule
;
import
de.monticore.lang.monticar.generator.cpp.EMAMBluePrintCPP
;
import
de.monticore.lang.monticar.generator.cpp.MathFunctionFixer
;
import
de.monticore.lang.monticar.generator.cpp.converter.ComponentConverter
;
...
...
@@ -65,5 +66,12 @@ public class BoundingRectCommand extends MathCommand{
mathMatrixNameExpressionSymbol
.
getMathMatrixAccessOperatorSymbol
().
setMathMatrixAccessSymbols
(
newMatrixAccessSymbols
);
bluePrintCPP
.
addCVIncludeString
(
"opencv2/imgproc/imgproc"
);
bluePrintCPP
.
getGenerator
().
getCmakeConfig
()
.
addModuleDependency
(
new
CMakeFindModule
(
"OpenCV"
,
true
));
bluePrintCPP
.
getGenerator
().
getCmakeConfig
()
.
addModuleDependency
(
new
CMakeFindModule
(
"blas"
,
true
));
bluePrintCPP
.
getGenerator
().
getCmakeConfig
()
.
addModuleDependency
(
new
CMakeFindModule
(
"openblas"
,
true
));
}
}
src/main/java/de/monticore/lang/monticar/generator/cpp/commands/CvtColorCommand.java
View file @
0163b2c1
...
...
@@ -4,6 +4,7 @@ import de.monticore.lang.math._symboltable.expression.MathExpressionSymbol;
import
de.monticore.lang.math._symboltable.matrix.MathMatrixAccessSymbol
;
import
de.monticore.lang.math._symboltable.matrix.MathMatrixNameExpressionSymbol
;
import
de.monticore.lang.monticar.generator.*
;
import
de.monticore.lang.monticar.generator.cmake.CMakeFindModule
;
import
de.monticore.lang.monticar.generator.cpp.EMAMBluePrintCPP
;
import
de.monticore.lang.monticar.generator.cpp.MathExpressionProperties
;
import
de.monticore.lang.monticar.generator.cpp.MathFunctionFixer
;
...
...
@@ -67,6 +68,13 @@ public class CvtColorCommand extends ArgumentNoReturnMathCommand{
redefineArmaMat
(
bluePrintCPP
);
redefineInit
(
bluePrintCPP
);
bluePrintCPP
.
getGenerator
().
getCmakeConfig
()
.
addModuleDependency
(
new
CMakeFindModule
(
"OpenCV"
,
true
));
bluePrintCPP
.
getGenerator
().
getCmakeConfig
()
.
addModuleDependency
(
new
CMakeFindModule
(
"blas"
,
true
));
bluePrintCPP
.
getGenerator
().
getCmakeConfig
()
.
addModuleDependency
(
new
CMakeFindModule
(
"openblas"
,
true
));
}
private
Method
getCvtColorHelperMethod
(
MathMatrixNameExpressionSymbol
mathMatrixNameExpressionSymbol
,
EMAMBluePrintCPP
bluePrintCPP
,
MathExpressionProperties
properties
){
...
...
src/main/java/de/monticore/lang/monticar/generator/cpp/commands/DilateCommand.java
View file @
0163b2c1
...
...
@@ -4,6 +4,7 @@ import de.monticore.lang.math._symboltable.expression.MathExpressionSymbol;
import
de.monticore.lang.math._symboltable.matrix.MathMatrixAccessSymbol
;
import
de.monticore.lang.math._symboltable.matrix.MathMatrixNameExpressionSymbol
;
import
de.monticore.lang.monticar.generator.*
;
import
de.monticore.lang.monticar.generator.cmake.CMakeFindModule
;
import
de.monticore.lang.monticar.generator.cpp.EMAMBluePrintCPP
;
import
de.monticore.lang.monticar.generator.cpp.MathExpressionProperties
;
import
de.monticore.lang.monticar.generator.cpp.MathFunctionFixer
;
...
...
@@ -67,6 +68,12 @@ public class DilateCommand extends ArgumentNoReturnMathCommand{
redefineArmaMat
(
bluePrintCPP
);
redefineInit
(
bluePrintCPP
);
bluePrintCPP
.
getGenerator
().
getCmakeConfig
()
.
addModuleDependency
(
new
CMakeFindModule
(
"OpenCV"
,
true
));
bluePrintCPP
.
getGenerator
().
getCmakeConfig
()
.
addModuleDependency
(
new
CMakeFindModule
(
"blas"
,
true
));
bluePrintCPP
.
getGenerator
().
getCmakeConfig
()
.
addModuleDependency
(
new
CMakeFindModule
(
"openblas"
,
true
));
}
private
Method
getDilateHelperMethod
(
MathMatrixNameExpressionSymbol
mathMatrixNameExpressionSymbol
,
EMAMBluePrintCPP
bluePrintCPP
,
MathExpressionProperties
properties
){
...
...
src/main/java/de/monticore/lang/monticar/generator/cpp/commands/ErodeCommand.java
View file @
0163b2c1
...
...
@@ -4,6 +4,7 @@ import de.monticore.lang.math._symboltable.expression.MathExpressionSymbol;
import
de.monticore.lang.math._symboltable.matrix.MathMatrixAccessSymbol
;
import
de.monticore.lang.math._symboltable.matrix.MathMatrixNameExpressionSymbol
;
import
de.monticore.lang.monticar.generator.*
;
import
de.monticore.lang.monticar.generator.cmake.CMakeFindModule
;
import
de.monticore.lang.monticar.generator.cpp.EMAMBluePrintCPP
;
import
de.monticore.lang.monticar.generator.cpp.MathExpressionProperties
;
import
de.monticore.lang.monticar.generator.cpp.converter.ComponentConverter
;
...
...
@@ -69,6 +70,13 @@ public class ErodeCommand extends ArgumentNoReturnMathCommand{
redefineArmaMat
(
bluePrintCPP
);
redefineInit
(
bluePrintCPP
);
bluePrintCPP
.
getGenerator
().
getCmakeConfig
()
.
addModuleDependency
(
new
CMakeFindModule
(
"OpenCV"
,
true
));
bluePrintCPP
.
getGenerator
().
getCmakeConfig
()
.
addModuleDependency
(
new
CMakeFindModule
(
"blas"
,
true
));
bluePrintCPP
.
getGenerator
().
getCmakeConfig
()
.
addModuleDependency
(
new
CMakeFindModule
(
"openblas"
,
true
));
}
private
Method
getErodeHelperMethod
(
MathMatrixNameExpressionSymbol
mathMatrixNameExpressionSymbol
,
EMAMBluePrintCPP
bluePrintCPP
,
MathExpressionProperties
properties
){
...
...
src/main/java/de/monticore/lang/monticar/generator/cpp/commands/FindContoursCommand.java
View file @
0163b2c1
...
...
@@ -4,6 +4,7 @@ import de.monticore.lang.math._symboltable.expression.MathExpressionSymbol;
import
de.monticore.lang.math._symboltable.matrix.MathMatrixAccessSymbol
;
import
de.monticore.lang.math._symboltable.matrix.MathMatrixNameExpressionSymbol
;
import
de.monticore.lang.monticar.generator.*
;
import
de.monticore.lang.monticar.generator.cmake.CMakeFindModule
;
import
de.monticore.lang.monticar.generator.cpp.EMAMBluePrintCPP
;
import
de.monticore.lang.monticar.generator.cpp.MathExpressionProperties
;
import
de.monticore.lang.monticar.generator.cpp.MathFunctionFixer
;
...
...
@@ -68,6 +69,13 @@ public class FindContoursCommand extends ArgumentNoReturnMathCommand{
redefineArmaMat
(
bluePrintCPP
);
redefineInit
(
bluePrintCPP
);
bluePrintCPP
.
getGenerator
().
getCmakeConfig
()
.
addModuleDependency
(
new
CMakeFindModule
(
"OpenCV"
,
true
));
bluePrintCPP
.
getGenerator
().
getCmakeConfig
()
.
addModuleDependency
(
new
CMakeFindModule
(
"blas"
,
true
));
bluePrintCPP
.
getGenerator
().
getCmakeConfig
()
.
addModuleDependency
(
new
CMakeFindModule
(
"openblas"
,
true
));
}
private
Method
getFindContoursHelperMethod
(
MathMatrixNameExpressionSymbol
mathMatrixNameExpressionSymbol
,
EMAMBluePrintCPP
bluePrintCPP
,
MathExpressionProperties
properties
){
...
...
src/main/java/de/monticore/lang/monticar/generator/cpp/commands/GaussianBlurCommand.java
View file @
0163b2c1
...
...
@@ -4,6 +4,7 @@ import de.monticore.lang.math._symboltable.expression.MathExpressionSymbol;
import
de.monticore.lang.math._symboltable.matrix.MathMatrixAccessSymbol
;
import
de.monticore.lang.math._symboltable.matrix.MathMatrixNameExpressionSymbol
;
import
de.monticore.lang.monticar.generator.*
;
import
de.monticore.lang.monticar.generator.cmake.CMakeFindModule
;
import
de.monticore.lang.monticar.generator.cpp.EMAMBluePrintCPP
;
import
de.monticore.lang.monticar.generator.cpp.MathExpressionProperties
;
import
de.monticore.lang.monticar.generator.cpp.MathFunctionFixer
;
...
...
@@ -66,6 +67,13 @@ public class GaussianBlurCommand extends ArgumentNoReturnMathCommand{
bluePrint
.
addMethod
(
gaussianBlurHelperMethod
);
redefineArmaMat
(
bluePrintCPP
);
redefineInit
(
bluePrintCPP
);
bluePrintCPP
.
getGenerator
().
getCmakeConfig
()
.
addModuleDependency
(
new
CMakeFindModule
(
"OpenCV"
,
true
));
bluePrintCPP
.
getGenerator
().
getCmakeConfig
()
.
addModuleDependency
(
new
CMakeFindModule
(
"blas"
,
true
));
bluePrintCPP
.
getGenerator
().
getCmakeConfig
()
.
addModuleDependency
(
new
CMakeFindModule
(
"openblas"
,
true
));
}
private
Method
getGaussianBlurHelperMethod
(
MathMatrixNameExpressionSymbol
mathMatrixNameExpressionSymbol
,
EMAMBluePrintCPP
bluePrintCPP
,
MathExpressionProperties
properties
){
...
...
src/main/java/de/monticore/lang/monticar/generator/cpp/commands/InRangeCommand.java
View file @
0163b2c1
...
...
@@ -4,6 +4,7 @@ import de.monticore.lang.math._symboltable.expression.MathExpressionSymbol;
import
de.monticore.lang.math._symboltable.matrix.MathMatrixAccessSymbol
;
import
de.monticore.lang.math._symboltable.matrix.MathMatrixNameExpressionSymbol
;
import
de.monticore.lang.monticar.generator.*
;
import
de.monticore.lang.monticar.generator.cmake.CMakeFindModule
;
import
de.monticore.lang.monticar.generator.cpp.EMAMBluePrintCPP
;
import
de.monticore.lang.monticar.generator.cpp.MathExpressionProperties
;
import
de.monticore.lang.monticar.generator.cpp.MathFunctionFixer
;
...
...
@@ -67,6 +68,13 @@ public class InRangeCommand extends ArgumentNoReturnMathCommand{
redefineArmaMat
(
bluePrintCPP
);
redefineInit
(
bluePrintCPP
);
bluePrintCPP
.
getGenerator
().
getCmakeConfig
()
.
addModuleDependency
(
new
CMakeFindModule
(
"OpenCV"
,
true
));
bluePrintCPP
.
getGenerator
().
getCmakeConfig
()
.
addModuleDependency
(
new
CMakeFindModule
(
"blas"
,
true
));
bluePrintCPP
.
getGenerator
().
getCmakeConfig
()
.
addModuleDependency
(
new
CMakeFindModule
(
"openblas"
,
true
));
}
private
Method
getInRangeHelperMethod
(
MathMatrixNameExpressionSymbol
mathMatrixNameExpressionSymbol
,
EMAMBluePrintCPP
bluePrintCPP
,
MathExpressionProperties
properties
){
...
...
src/main/java/de/monticore/lang/monticar/generator/cpp/commands/LargestContourCommand.java
View file @
0163b2c1
...
...
@@ -4,6 +4,7 @@ import de.monticore.lang.math._symboltable.expression.MathExpressionSymbol;
import
de.monticore.lang.math._symboltable.matrix.MathMatrixAccessSymbol
;
import
de.monticore.lang.math._symboltable.matrix.MathMatrixNameExpressionSymbol
;
import
de.monticore.lang.monticar.generator.*
;
import
de.monticore.lang.monticar.generator.cmake.CMakeFindModule
;
import
de.monticore.lang.monticar.generator.cpp.EMAMBluePrintCPP
;
import
de.monticore.lang.monticar.generator.cpp.MathFunctionFixer
;
import
de.monticore.lang.monticar.generator.cpp.converter.ExecuteMethodGenerator
;
...
...
@@ -66,6 +67,13 @@ public class LargestContourCommand extends MathCommand {
redefineArmaMat
(
bluePrintCPP
);
redefineInit
(
bluePrintCPP
);
bluePrintCPP
.
getGenerator
().
getCmakeConfig
()
.
addModuleDependency
(
new
CMakeFindModule
(
"OpenCV"
,
true
));
bluePrintCPP
.
getGenerator
().
getCmakeConfig
()
.
addModuleDependency
(
new
CMakeFindModule
(
"blas"
,
true
));
bluePrintCPP
.
getGenerator
().
getCmakeConfig
()
.
addModuleDependency
(
new
CMakeFindModule
(
"openblas"
,
true
));
}
private
Method
getLargestContourMethod
(){
...
...
src/main/java/de/monticore/lang/monticar/generator/cpp/commands/RectangleCommand.java
View file @
0163b2c1
...
...
@@ -4,6 +4,7 @@ import de.monticore.lang.math._symboltable.expression.MathExpressionSymbol;
import
de.monticore.lang.math._symboltable.matrix.MathMatrixAccessSymbol
;
import
de.monticore.lang.math._symboltable.matrix.MathMatrixNameExpressionSymbol
;
import
de.monticore.lang.monticar.generator.*
;
import
de.monticore.lang.monticar.generator.cmake.CMakeFindModule
;
import
de.monticore.lang.monticar.generator.cpp.EMAMBluePrintCPP
;
import
de.monticore.lang.monticar.generator.cpp.MathExpressionProperties
;
import
de.monticore.lang.monticar.generator.cpp.MathFunctionFixer
;
...
...
@@ -71,6 +72,13 @@ public class RectangleCommand extends MathCommand{
redefineArmaMat
(
bluePrintCPP
);
redefineInit
(
bluePrintCPP
);
bluePrintCPP
.
getGenerator
().
getCmakeConfig
()
.
addModuleDependency
(
new
CMakeFindModule
(
"OpenCV"
,
true
));
bluePrintCPP
.
getGenerator
().
getCmakeConfig
()
.
addModuleDependency
(
new
CMakeFindModule
(
"blas"
,
true
));
bluePrintCPP
.
getGenerator
().
getCmakeConfig
()
.
addModuleDependency
(
new
CMakeFindModule
(
"openblas"
,
true
));
}
private
Method
getRectangleHelperMethod
(
MathMatrixNameExpressionSymbol
mathMatrixNameExpressionSymbol
,
EMAMBluePrintCPP
bluePrintCPP
,
MathExpressionProperties
properties
){
...
...
Write
Preview
Markdown
is supported
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