Справочник фильтров VirtualDub




DeLogo - часть 4


  1. Start VirtualDub and open the video file with a logo:



    Let's omit the TV logo in the upper left corner and concentrate just on the huge blue bar at the bottom of the image. Most of it is transparent but there are some opaque parts too. 
  2. Open the Filters dialog and load the DeLogo filter.
  3. Press the Show preview button. In the Preview window and find a frame where the logo is best visible.
  4. Press the Save frame button (next to the Analyse: text in the Mask properties group) and choose a folder and a name for the bitmap image containing your selected frame. Save it by pressing the Save button.
  5. Open the image in your preferred image editor (e.g. Windows Paint) and mark the logo and some area around it by a fine red (255, 0, 0) color. Leave some area around the logo as is and mark the remaining area by full blue (0, 0, 255) color:



    The red area is the area where the analyser will look for the logo. The logo itself should be a few pixels smaller than the marked area. The blue area will be omitted by the analyser, i.e. the analysis results from the blue area will not be used in any way. The remaining area (original color) will be used as a reference area - the analysis results for pixels in this area will be compared with the analysis results for pixels in the red area to find the alpha and color values. It is therefore a good idea to leave the reference area near the analysed area but not to make it too big.
  6. In the DeLogo configuration dialog, press the Load button next to the Analyse: text in the Mask properties group and load the mask as an analysis mask.
  7. Both Analysis and DeBlend masks should be enabled now. The Analysis mask contains your mask with reference area changed to black instead of original picture. The DeBlend mask is very similar but the red area edge is somewhat smeared to the reference area:



    The smearing width can be adjusted by the DeBlend falloff slider. It causes the DeBlend process to extend a little to the reference area to prevent a visible edge between repaired and non-repaired area.



    Содержание  Назад  Вперед