Tutorial 3 - Retina - How to elaborate images.
More...
Go to the source code of this file.
Tutorial 3 - Retina - How to elaborate images.
In this tutorial you can find what do you need to elaborate images in your system with a minimal integration of SB library. To elaborate an image you have to call the function sb_project_detection and get the results with the function sb_project_get_res .
In a Retina project, the function sb_project_detection requires the following arguments as input:
- a SB_HANDLE of the project.
You can load the handle of the Retina project with the function sb_project_load .
- a sb_t_image, i.e. the image to be processed.
To create the image you can choose between two different procedures depending if you already have the raw image in the memory or not:
- a sb_t_roi, the ROI (Region Of Interest) that specifies the region of the image to be processed.
To create a ROI you have to call the function sb_roi_create and then to draw the region using the functions sb_roi_set_rect , sb_roi_set_circle , sb_roi_set_ellipse or sb_roi_set_circular_crown , or draw the ROI manually setting pixel by pixel.
For more details see ROI management
- a sb_t_samples list, that specify the ground truth of the image, i.e. the location and the model of the samples in the image. This information is not mandatory. If no samples list is passed to the function the result of the detection is not compared to the ground truth, and all the detected sample occurrences are classified as SB_TRUTH_UNDEFINED.
- See also
- sb_init
-
sb_release
-
sb_get_info
-
sb_license_get_hw_info
-
sb_folder_load
-
sb_folder_destroy
-
sb_solution_get_info
-
sb_solution_destroy_info
-
sb_project_load
-
sb_project_detection
-
sb_project_get_res
-
sb_project_destroy
-
sb_image_load
-
sb_image_create_header
-
sb_image_set_data
-
sb_image_destroy
-
sb_roi_create
-
sb_roi_set_rect
-
sb_roi_set_circle
-
sb_roi_set_ellipse
-
sb_roi_set_circular_crown
-
sb_roi_destroy
-
sb_res_destroy
Definition in file retina_detect.c.
◆ main()
In the following the list of the program steps:
- Initialization of the SqueezeBrains library.
- Wait until the license is active.
- Get the solution information.
- Load the Retina project from solution file.
- Load the image from file.
- Create the ROI
- Set a rectangular ROI equal to image dimensions.
- Elaborate the image.
- Get the results.
- Destroy the handles.
- Release the library.
Definition at line 52 of file retina_detect.c.