Git Product home page Git Product logo

inpaint's Introduction

このツールについて

マスク指定された画像領域を高速に塗りつぶすツールです。 3DCG用のテクスチャのパディング領域の塗りつぶし等に用いることが出来ます。

src

dst

使い方

inpaint --src 入力画像 --mask マスク画像 --dst 出力画像

入力画像

RGB画像もしくはRGBA画像を入力します。 RGBA画像が入力された場合、RGBチャネルのみがinpaintされ、アルファチャネルは変化しません。

マスク画像

1ch, 3ch, 4chの画像を入力出来ます。

  • 1chの場合、黒画素の領域が塗りつぶされます。
  • 3chの場合、黒画素の領域が塗りつぶされます。
  • 4chの場合、4チャネル目(アルファチャネル)が黒画素の領域が塗りつぶされます。

出力画像

塗りつぶされた画像の出力先を指定。

inpaintRGBA.bat

windowsで動作するバッチファイル(inpaintRGBA.bat)を用意してあります。 RGBチャネルの塗りつぶしたい領域のアルファが0の画像をD&Dで指定します。

ビルド方法

必要環境

  • cmake >= 3.12
  • compiler (Visual C++等)

ビルド手順

OpenCVのビルド

次のコマンドを実行

cmake -P build_opencv.cmake

build_opencvディレクトリにビルドされます。

inpaintのビルド

cmake -P build_inpaint.cmake

buildディレクトリにビルドされます。

inpaint's People

Contributors

takecccc avatar

Stargazers

tktk avatar  avatar Kitsunesaki Mezumona avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.