Author Topic: Image labeling helper  (Read 4094 times)

Offline mschuster

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1087
Image labeling helper
« on: 2012 August 31 10:35:44 »
Here is a script that helps with image labeling, useful when you need to control the set of labeled objects and tweak their visualizations. You can do these sorts of things manually in a drawing program, but I thought a script like this might be helpful. Unlike Andres' AnnotateImage script, this script does not do catalog searches. Everything must be specified explicitly.

Version 0.3 update: Support .csv style properties
Version 0.4 and 0.5 update: Add multi-line labels, add base view composition option

Here is an example. I tweaked the layout, the sizes and the positions of the elements, to improve legibility.



Here is the script's dialog. Each label consists of marker and text tag information.



The labels and style properties can be saved in and opened from .cvs files for easy archival and editing.



The script creates a transparent overlay that you can compose with the target image using PixelMath. For the example above I used two overlays with different text sizes. The overlays provide flexibility, for example you can colorize them prior to composition. You can also select a compatible base view and the script will do the composition automatically.



Regards,
Mike
« Last Edit: 2013 January 19 22:43:09 by mschuster »

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Re: Image labeling helper
« Reply #1 on: 2012 August 31 11:50:57 »
Good stuff Mike!
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline mschuster

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1087
Re: Image labeling helper
« Reply #2 on: 2012 September 04 16:20:24 »
Thanks Sander. Also just a note: I tweaked the script, you can now specify style properties in the .csv file. See the head post.
Mike

PS: I also added multi-line labels and an option for automatic base view composition.
« Last Edit: 2012 September 19 17:18:34 by mschuster »