Altami Software - software for image analysis
Altami Software
Software for image analysis

Configured find contours

Introduction

Used instruments: the Interval figure, Delimiter, the Configured find contours filter, the filter Draw delimiter measurements.

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.

Step 1. Launch of the application

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\).

Step 2. Opening the file

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:

http://download.altamisoft.ru/download/resources/tutorials_pictures/find_contours/open_file_en.png

Image 1. The opened document in Altami Studio application

Step 3. Adding the filter Configured find contours to the document

In order to use the Configured find contours filter, call the Filters panel through the menu View→Panels→Filters.

http://download.altamisoft.ru/download/resources/tutorials_pictures/find_contours/open_filter_1_en.png

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.

http://download.altamisoft.ru/download/resources/tutorials_pictures/find_contours/filter_2_1_en.png

Image 3. Adding the Configured find contours filter

Step 4. Filter settings. Configured find contours

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.

 

http://download.altamisoft.ru/download/resources/tutorials_pictures/find_contours/filter_find_contours_en.png

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.

Step 5. Setting the parameters of the Adaptive threshold filter

http://download.altamisoft.ru/download/resources/tutorials_pictures/find_contours/adaptive_threshold_en.png

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.

Step 6. Configured find contours filter

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.

http://download.altamisoft.ru/download/resources/tutorials_pictures/find_contours/smooth_en.png

Image 6. Smooth filter in the Configured find contours filter

Step 7. Setting of the Closing 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.

http://download.altamisoft.ru/download/resources/tutorials_pictures/find_contours/closing_en.png

Image 7. The Closing filter in the Configured find contours filter

Step 8. Filter setting. Opening

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.

 

http://download.altamisoft.ru/download/resources/tutorials_pictures/find_contours/openning_en.png

Image 8. The Opening filter in the composite filter Configured find contours

Step 9. The setting of the Drawing autofigures filter

The switched on by default Draw auto measurements filter quickly draws the figures, found by the Find contours filter.

http://download.altamisoft.ru/download/resources/tutorials_pictures/find_contours/draw_auto_en.png

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:

http://download.altamisoft.ru/download/resources/tutorials_pictures/find_contours/color_auto_en.png

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:

http://download.altamisoft.ru/download/resources/tutorials_pictures/find_contours/pen_width_en.png

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:

http://download.altamisoft.ru/download/resources/tutorials_pictures/find_contours/draw_auto_end_en.png

Image 12. Operating of the Configured find contours filter

Step 10. Setting of the Draw delimiter measurements filters

Having used the Interval figure at the Figures panel, draw the interval between the glued objects as it is drawn at the Image 13.

http://download.altamisoft.ru/download/resources/tutorials_pictures/find_contours/interval_en.png

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:

http://download.altamisoft.ru/download/resources/tutorials_pictures/find_contours/color_line_en.png

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:

http://download.altamisoft.ru/download/resources/tutorials_pictures/find_contours/delimiter_en.png

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.

http://download.altamisoft.ru/download/resources/tutorials_pictures/find_contours/draw_delimiter_en.png

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.

http://download.altamisoft.ru/download/resources/tutorials_pictures/find_contours/show_figure_en.png

Image 17. Switch off Show measurements parameter

After that the Interval figure will not be shown at the image.

http://download.altamisoft.ru/download/resources/tutorials_pictures/find_contours/end_en.png

Image 18. The total result of the Configured find contours transformation


Read more on the subject:

Sobel filter
Laplace filter
Threshold filter
Threshold of color image filter
Adjust histogram
Inpaint image by mask filter
Inpaint black pixels in image filter
Adaptive threshold filter
Setting the white balance in Altami Studio and Altami VideoKit

Win/Linux/Mac

Altami software products work under the most popular modern operating system such as Windows, Linux и Macintosh.

Need to develop?

If our products do not solve your problems, we are ready to develop "from scratch" or modify existing applications.

USB 3.0

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.