Objects of examination: halftone image of blood particles (Particles.bmp).
Task: find contours of objects at the image and divide the objects which stuck together during the search of contours.
NOTE. Tutorial does not contain the information on all the possibilities of the application. Here the optimal way of solving the task set is offered.
Launch the Altami Studio application. In order to launch the application, use the Altami Studio shortcut at the workbench or the menu item Start→Programs→Altami Ltd→Altami Studio 3.0. Besides, the application can be launched from the folder where the application was installed (usually it is C:\Program Files\Altami Ltd\Altami Studio 3.0\).
Open the file with the image, in order to do that, use the menu item File→Open and select the file Particles.bmp. It is in Tutorials\Picturesfolder which is in the main folder of the application. Press the Open. button. In the application window the following image shall be opened:
Image 1. The opened document in Altami Studio application
In order to use the Configured find contours filter, call the Filters panel through the menu View→Panels→Filters.
Image 2. Opening the Filters panel
Then in the appeared Filters panel click with the right button of the mouse, and in the context menu select Filters→Complex filters→Configured find contours.
Image 3. Adding the Configured find contours filter
Select at the Filters panel the Configured find contours filter and click the plus near the name. You will see the list of filters used in the Configured find contours filter. At the lower part of the panel the settings of the applied filter are applied. At that panel you can switch and switch off the filter, having put the tick and having delete the tick near the enabled parameter.
Image 4. The adjusted search of the contours filter
The adjusted search of contours consists of: group of filters for the search of the contours (Smooth, Adaptive threshold, Closing, Opening) and the Draw auto measurements filter. You can use the Compex filter and change parameters of each filter it is made of as you need.
Image 5. The Adaptive Threshold filter in the composite filter Configured find contours
Select the Adaptive threshold filter and in its settings in the lower part of the panel indicate the blockSize as 10, and the threshValue as 2,00.
Select the Smooth filter in the Configured find contours filter. Place the tick in the checkbox near the enabled parameter in the Smooth filter settings. Indicate the 12 value of the size parameter.
Image 6. Smooth filter in the Configured find contours filter
Select the Closing filter in the Configured find contours filter and place a tick near the enabled filter in order that the True filter appears. Indicate the 5 value of the size parameter and 1 for iterations.
Image 7. The Closing filter in the Configured find contours filter
Select in the Configured find contours filter the Opening filter and near the enabled button place a tick so that the True button appeared. Leave by default the indicated 3 value of the size parameter and 1 for iterations.
Image 8. The Opening filter in the composite filter Configured find contours
The switched on by default Draw auto measurements filter quickly draws the figures, found by the Find contours filter.
Image 9. The Draw auto measurements filter in the Configured find contours filter
Indicate the color of figures outlining having selected the Color parameter and pressed the appeared button «...». Select, for example, the yellow color:
Image 10. Select the color of outlining for the drawn autofigures
Indicate the penWidth parameter for autofigures in the Draw auto measurements filter settings as 3:
Image 11. Changing the penWidth parameter of the draw auto measurements filter
As the result you will have the following image in front of you:
Image 12. Operating of the Configured find contours filter
Having used the Interval figure at the Figures panel, draw the interval between the glued objects as it is drawn at the Image 13.
Image 13. Creating the interval between the glued objects
For the interval it is necessary to select the color which would not merge with the color of the separated parts and would be close to the background color. Select the interval and click at the right button of the mouse. Select the Color of line – light gray:
Image 14. Selecting the color of the Interval figure
Select the interval, click at it with the right button of the mouse, and in the appeared context menu select the Delimiter item:
Image 15. Transforming the Interval figure into the Delimiter
As the result of this action the glued parts separate, as the Draw delimiter measurements filter in the Configured find contours filter is switched on by default.
Image 16. Work of the Draw delimiter measurements filter
After the dividing of figures is done, you can select the interval and click at the right button of the mouse. Select the Show measurements item in the context menu, near which there is a tick.
Image 17. Switch off Show measurements parameter
After that the Interval figure will not be shown at the image.
Image 18. The total result of the Configured find contours transformation
Altami software products work under the most popular modern operating system such as Windows, Linux и Macintosh.
If our products do not solve your problems, we are ready to develop "from scratch" or modify existing applications.
Tired of the slow camera work? Keep up with progress! The camera on USB 3.0! operates at a speed of up to 180 fps.