Re: PureBasic Interface to OpenCV
Posted: Tue Apr 19, 2016 3:58 am
Updated:
- updated 2 examples
-- cv_motion_blur.pb
-- cv_radial_blur.pb
cv_motion_blur.pb
- 4 different directions of blur
- hold down the spacebar to better view the direction of blur (gives the illusion that some pixel-areas are spinning)
cv_radial_blur.pb
- click an X/Y point on the image to reposition the blur
- press enter to reset X/Y point to center
------------------------------------------------------------------------------------
A new download link has been added to the first post...
PureBasic Interface to OpenCV :: Demo (32bit / 64bit)
... with a couple bare-metal examples modified from the main 2.4.12 interface, containing only the required includes and binaries.
- pb_sepia.pb: convert a color image to sepia
- pb_webcam.pb: displays the webcam in an image gadget
The examples in the main interface were structured to demonstrate OpenCV functionality written in PureBasic, while these examples were structured towards creating a PureBasic application with the added functionality of OpenCV.
Unlike the main interface examples which use OpenCV Functions to create the window and display an image, these examples convert an OpenCV image to display in a PureBasic gadget.
- this method could be applied to any of the 200+ examples contained in the main interface
- many of the algorithms could be used in a PureBasic application without OpenCV
NB*: As with the main interface project the C-Runtime files have been included, but may not be needed depending on your computers configuration.
------------------------------------------------------------------------------------
Updated the following interface examples similar to the method used in the Demo examples:
-- pb_cam_effects_1.pb, pb_cam_effects_2.pb, pb_cam_preferences.pb, pb_cam_resolution.pb
-- pb_gl_cam_cube.pb, pb_gl_cam_invert.pb, pb_gl_parametric_curve.pb, pb_gl_photo_cube.pb
Modified the Procedure OpenCV2PBImage in all projects.
Globally updated all examples replacing the Function MessageBox with MessageRequester.
- updated 2 examples
-- cv_motion_blur.pb
-- cv_radial_blur.pb
cv_motion_blur.pb
- 4 different directions of blur
- hold down the spacebar to better view the direction of blur (gives the illusion that some pixel-areas are spinning)
cv_radial_blur.pb
- click an X/Y point on the image to reposition the blur
- press enter to reset X/Y point to center
------------------------------------------------------------------------------------
A new download link has been added to the first post...
PureBasic Interface to OpenCV :: Demo (32bit / 64bit)
... with a couple bare-metal examples modified from the main 2.4.12 interface, containing only the required includes and binaries.
- pb_sepia.pb: convert a color image to sepia
- pb_webcam.pb: displays the webcam in an image gadget
The examples in the main interface were structured to demonstrate OpenCV functionality written in PureBasic, while these examples were structured towards creating a PureBasic application with the added functionality of OpenCV.
Unlike the main interface examples which use OpenCV Functions to create the window and display an image, these examples convert an OpenCV image to display in a PureBasic gadget.
- this method could be applied to any of the 200+ examples contained in the main interface
- many of the algorithms could be used in a PureBasic application without OpenCV
NB*: As with the main interface project the C-Runtime files have been included, but may not be needed depending on your computers configuration.
------------------------------------------------------------------------------------
Updated the following interface examples similar to the method used in the Demo examples:
-- pb_cam_effects_1.pb, pb_cam_effects_2.pb, pb_cam_preferences.pb, pb_cam_resolution.pb
-- pb_gl_cam_cube.pb, pb_gl_cam_invert.pb, pb_gl_parametric_curve.pb, pb_gl_photo_cube.pb
Modified the Procedure OpenCV2PBImage in all projects.
Globally updated all examples replacing the Function MessageBox with MessageRequester.