GlipStudio
GlipStudio is a small IDE for GLIP-Lib : load images and prototype quickly pipelines, filters and profiles in the editor and the uniform variables manager. Once the pipelines are saved to the disk, you can use them in applications based on GLIP-Lib.
Get GlipStudio
In order to use GlipStudio, you can get it from the following sources :
Building the code, what is needed :
- Linux : GCC 4.6+, CMake, Qt SDK.
- Windows : Visual Studio (Express) 2012, Qt SDK (with OpenGL support "Qt 5.1.0 for Windows (VS 2012, OpenGL)", can be downloaded at http://qt-project.org/downloads).
Build steps on Linux :
- In directory GLIP-Lib/, run script file compile.sh or CMake generation :
cmake . -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=Release
- In directory Examples/GlipStudio/, run usual build procedure for Qt application :
Build steps on Windows :
- Open project file in Project_VS/GLIP-Lib/ with Visual Studio. Include 'GLIP-Lib/include/' in search path and choose the target compilation (32/64 bits, release). Build the project.
- With Qt Creator, open project file in Examples/GlipStudio/ (Examples/GlipStudio/GlipStudio.pro). Set the target to release and build the project.
Using Glip Studio
How to use GlipStudio :
- Load images : in the lower pane, in the Resources tab, click the Image menu, then Load image.... Choose the images to load in the dialog box. Once loaded they appear in the Images section with their names, resolutions, GL modes, and filtering. Click on a line to display the corresponding image in the Display Window.
- Load a pipeline : in the right pane, in the File menu, choose Open. The application is distributed with several examples in the directory Filters (PPL files). For instance, load pipeline changeHSL_HSV.ppl, its source code will appear in a new tab. Do no modify the code for the moment, and click Refresh | Compile in the menu bar. The pipeline is created and its inputs and outputs are now listed in the Resource manager (Resources tab in the lower pane). In this manager, select one image from the Images section and connect it as the input of the pipeline : click the Connect menu and choose the unique input available. Note that the input size as changed and this particular pipeline must be refreshed every time this happens : click Refresh | Compile in the menu bar of the editor (or press F5 or Ctrl+r on your keyboard). Select the first output or second output image, they should display almost identical images than the input.
- Modify uniform variables : without recompiling the program, you are allowed to modify variables dynamically. Go in the Uniforms tab, and modify the values in the boxes (hint : you can let your mouse over a box a use your mouse wheel or trackpad virtual wheel in order to modify the values more smoothly).
- Save uniform variables : if you were to recompile the pipeline after a modification of the code, you would loose the current settings in the uniform variables. In order to avoid this problem, go in the Uniforms tab, and, from here, you can save to a file. This is time costly for numerous modification, so you can use the Main Library menu from which you will be able to quickly save and load one profile per Pipeline.
- Save the output : you can save the output of a pipeline either in memory as a duplicate or to the disk. Go in the Resources tab, select the output, click the Image menu and choose Copy as new resource... for a in-memory copy (you will be ask for a name for the new resource) or choose Save output as... to save the image to the disk (in JPEG, PNG, BMP, PPM, etc.).
Visualization commands, select the visualization window (containing the image) by clicking it first :
Command | Designation |
Escape | Escape fullscreen mode |
Directional arrows | Translation |
Return | Toggle fullscreen on/off |
Space | Reset transformation |
+/- | Zoom in / out |
f/d | Rotate left / right |
Left click and drag | Translation |
Right click and drag | Rotation |
Holding Control key + left click and drag | Rotation |
Double left click | Toggle fullscreen on/off |
Double right click | Reset transformation |
Mouse wheel | Zoom in / out |
Screenshots