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


DeLogo - часть 2

  1. Take an image with some unwanted elements, such as a photo with a timestamp:

  2. Convert the image to the .bmp format. There are many ways how to do it, but in case of lack of other suitable tools, it is still possible to press the PrintScreen key and paste the image to the Windows Paint program.
  3. Open the image in some image editing tool (such as Windows Paint) and mark all unwanted elements by a fine red (255, 0, 0) color:

    Don't hesitate to mark some extra pixels around the object, it is always better than to leave some artifacts to extend to the repaired area.
  4. Save the image to a numbered file, e.g. "Photo1.bmp", use a 24-bit color format. The number in the name is a tribute to VirtualDub, which expects a number in the filename to load it as a video frame. The 24-bit color format is required by the filter.
  5. Start the VirtualDub and open the bitmap as a 1-frame video in it.
  6. Open the Filters dialog and add the DeLogo filter to it. The filter configuration box will open.
  7. Press the Load... button next to the Repair: text in the Mask properties group and load the image here.
  8. Press the Show preview button and look at the result:

  9. For further improvements you may try to play a little with the controls in the Repair parameters group. Don't expect miracles - the marked area is only replaced by a weighted average of surrounding pixels. The weight is specified by the Power value while Depth affects the number of surrounding pixels. If you press the Repair radio button in the Preview group, you can see how many surrounding pixels (yellow) are used as the border:

    Note also that every continuous repaired area is processed on its own and has its own border. You can notice it when you pull the Power slider to the left end (value 0.0) which means a constant average of the border pixels. Each area will have its own constant color. This feature greatly increases processing speed for such complicated masks consisting of many parts.
  10. Press the Close button to close the filter configuration dialog and OK button to close the filters dialog.

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