
Originally Posted by
wysota
I suggest you start from thinking what features would you like the "added functionality" to have.
I still don't know what functions to use. All I know is the users are the ones who will create such image processing functions (C++). Of course I know that I need to test the simple scripts, I'm thinking of simple things like binarization of an image or grayscaling or conversion to other image color modes.
With my current application, I need to create a template for the QtScripts that I will create. the template must be able to
1. accept an image from qt
2. use variables from my qt application.
Can qtScript do that?
void binarize(Image imageFromQt){
//manipulate pixels of imageFromQt using variables from my Qt Application
//pass the manipulated Image to a QIcon or QGraphicsView
}
void grayScale(Image imageFromQt){
//manipulate pixels of imageFromQt using variables from my Qt Application
//pass the manipulated Image to a QIcon or QGraphicsView
}
void binarize(Image imageFromQt){
//manipulate pixels of imageFromQt using variables from my Qt Application
//pass the manipulated Image to a QIcon or QGraphicsView
}
void grayScale(Image imageFromQt){
//manipulate pixels of imageFromQt using variables from my Qt Application
//pass the manipulated Image to a QIcon or QGraphicsView
}
To copy to clipboard, switch view to plain text mode
A final requirement is the students that will create the image processing functions must use C++ and only C++. Most examples of QtScript I see make use of JavaScript . . .
Also, can I use methods that are declared within my QtApplication to be used by the QtScript codes?
Bookmarks