Automatic detection and tracking of filaments for a solar feature database