Commit fd0ba567 authored by Ahmed's avatar Ahmed

add cvtColor command

parent 68547afc
......@@ -19,7 +19,7 @@ import java.util.List;
* @author Ahmed Diab
*/
public class CvtColorCommand extends MathCommand{
public class CvtColorCommand extends ArgumentReturnMathCommand{
public CvtColorCommand() {
setMathCommandName("cvtColor");
}
......
......@@ -9,13 +9,18 @@ using namespace arma;
using namespace cv;
class test_math_cvtColorCommandTest{
public:
mat src;
int colorConversion;
mat dst;
void init()
{
src=mat(n,m);
dst=mat(n,m);
}
void execute()
{
double a = (cvtColor(0, 0, 0, 0, 0));
cvtColor(src, dst, colorConversion);
}
};
#endif
#endif
\ No newline at end of file
......@@ -2,7 +2,12 @@
package test.math;
component CvtColorCommandTest{
port
in Q^{n,m} src,
in Z colorConversion,
out Q^{n,m} dst;
implementation Math{
Q a = cvtColor(0,0,0,0,0);
dst = cvtColor(src, colorConversion);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment