🐋
Hypnotic Streamlines Animation
  • Introduction
  • Getting Started
    • Installation Guide
      • Line Art Code
      • Corresponding Code
      • Vpaint
    • Program Usage
      • Data Format
        • Line Art Data Format
        • Streamlines Corresponding
      • Line Art Generation
        • Image Pre-processing
        • Streamlines Rendering
      • Patch Optimization Tutorial
  • System Workflow
    • Still Image Workflows
    • Animation Frames Workflows
    • Different Generation Methods
  • Advanced Guide
    • Function API
      • Zhanping's Code
      • Line Art Code
      • Streamlines Corresponding
  • Bug and Future Work
    • Streamlines Generation Code
    • Limitation of Different Methods
    • SCR Streamline Animation Code
  • Future Work
Powered by GitBook
On this page
  • Data Preparation:
  • How To Use:
  • Output Result:

Was this helpful?

  1. Getting Started
  2. Program Usage

Patch Optimization Tutorial

This page will explain how to use the patch optimization code

PreviousStreamlines RenderingNextStill Image Workflows

Last updated 3 years ago

Was this helpful?

Data Preparation:

The Code Path: LineArtCoherenceTool/StreamlineCorresponding/patchOptimization.py

Argument Needed:

  • Image Segment Input

The Input Frame Segment Image.

  • PatchInfo.txt

The Patch Information of all the (b,g,r) color.

How To Use:

1.Set-up the input path:

2.Run The Code:

Output Result:

Output Value Explain:

  • Patch [BGR Color] = 'Patch Score Value'

  • 1st area = pixel count of the patch ; 2nd area = pixel count of the patch /total count of the entire patch

  • 1st obstacle = obstacle value of the patch ; 2nd obtacle = obstacle ratio over the entire patch.

Next Step (manually):

  1. Decide a threshold value manually based on the observation of Patch Score Value. (ex: 0.01)

  2. Only render the threshold value that over the decided threshold.

Walking_0000.png
Walking_0000_PatchInfo.txt
Main Code of the patchOptimization.py
Output Result of the Program