I am posting here since I am looking only for an idea.
As a part of my ongoing image processing software using OpenCV. The user can add a set of algorithms (in chronological order), can save it as a .xml file.
I have visualized the following in my mind, but I need help moving forward using wxWidgets.
a. User chooses picture
b. Selects the ROI (Region of Interest)
c. Choose one algorithm from the drop-down box
d. Enter parameters required for that particular algorithm
e. Choose another algorithm
f. Enter parameters for that particular algorithm and so on.
Finally, the user can preview the resulting image. If he wants, he can save this sequence of algorithms and the associated parameters as a .xml file. Next time, he can simply load the .xml and use the same pipeline for another image or a video stream, etc.
I already looked for something similar in wxWidgets examples. I had no luck. Any starting point or guidance will certainly help me.
If this question goes beyond the scope of the wxWidgets forum, please mention it.
Saving configuration and reopening it Topic is solved
-
- In need of some credit
- Posts: 3
- Joined: Tue Nov 10, 2020 8:36 am
Re: Saving configuration and reopening it
Hi,
So what exactly is the problem?
Thank you.
So what exactly is the problem?
Thank you.
Re: Saving configuration and reopening it
Does it have to be a XML file? If yes, you can use wxXmlDocument
https://docs.wxwidgets.org/trunk/classw ... ument.html
If not, i'd suggest wxFileConfig, which is much easier to use (IMHO):
https://docs.wxwidgets.org/trunk/classw ... onfig.html
Make sure to check its base class wxConfigBase, where you'll find the most import methods.
https://docs.wxwidgets.org/trunk/classw ... _base.html
https://docs.wxwidgets.org/trunk/classw ... ument.html
If not, i'd suggest wxFileConfig, which is much easier to use (IMHO):
https://docs.wxwidgets.org/trunk/classw ... onfig.html
Make sure to check its base class wxConfigBase, where you'll find the most import methods.
https://docs.wxwidgets.org/trunk/classw ... _base.html
Use the source, Luke!
Re: Saving configuration and reopening it
If you were asking if wxWidgets can automatically save and restore values from the controls in a form-like window, then the answer is NO.