A brief notification on the latest additions to
cv-cat (and all other camera applications linking in the same filters).
As of today, the application provides access to all the morphology operations available in OpenCV:
- morphological gradient
See OpenCV documentation for more details. In addition, a skeleton (a.k.a. thinning) filter is implemented on top of the basic morphological operations. The implementation follows this demo. However, this is neither the fastest nor the best implementation of thinning. Possibly the optimal approach is proposed in the paper "A fast parallel algorithm for thinning digital patterns" by T.Y. Zhang and C.Y. Suen. See this demo for comparative evaluation of several thinning algorithms (highly recommended!)
Some examples of usage are given below.
OpenCV allows multiple iterations of the same morphology operation, the default iterations number is 1. Below is the same erosion operation applied twice (please see cv-cat's help):
csv-calc is an application to calculate statistics (such as mean, median, size, standard deviation...) on multiple fields of an input file. Input records can be grouped by id, block, or both.
One drawback of csv-calc is that it only outputs the statistics for each id and block. The input records themselves are not preserved. This means that you cannot use csv-calc as part of a pipeline.
The --append option to csv-calc passes through the input stream, adding to every record the relevant statistics for its id and block.
keeping track of fields and formats
Another challenge for csv-calc users is the large number of fields that it generates (it applies every operation to every indicated field).
There are now --output-fields and --output-format options to show what kind of output a given csv-calc command will produce.