🐋
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
  • Manually Set Up
  • 1. Root Directory
  • 2. Inside _Tensor_ Directory
  • Related Tools
  • System Generated

Was this helpful?

  1. Getting Started
  2. Program Usage
  3. Data Format

Line Art Data Format

You need to manually set-up the initial data format before start generate the streamlines

PreviousData FormatNextStreamlines Corresponding

Last updated 3 years ago

Was this helpful?

Manually Set Up

1. Root Directory

  1. Folder : "_tensor_"

  2. PatchInfo.txt

  3. SepInfo.txt

  4. <Imgname>_00*.png ( The image frame want to set as keyframe )

2. Inside _Tensor_ Directory

  1. Folder : "img" [Input of Segmentation Frame Image]

    1. Naming Format:<Imgname>_00*.png

  2. Folder : "contour_img" [Input of Contour Frame Image]

    1. Naming Format:contour_<Imgname>_00*.png

Related Tools

  • Quick-Duplicate.bat

For the single image simulation, you can use this windows bat program to quickly duplicate the static single frame input.

@echo off

set /p source_id="Enter Source Name: "
set /p copy_id="Enter Copy Mask Name: "
set /p range="Enter Maximum Range (<99): "

for /l %%i in (0, 1, 9) do (
   copy %source_id% %copy_id%_000%%i.png
)

for /l %%i in (10, 1, %range%) do (
   copy %source_id% %copy_id%_00%%i.png
)

pause
  • PatchText.py (Inside Streamlines Corresponding Folder)

You can use the PatchText.py python code to quickly generate PatchInfo.txt and SepInfo.txt

PatchText.py Usage:

  1. Put The Image Patch Inside the folder TextImage

  2. Change the input patch_path filename in the main code

  3. Run the program

  4. Use Mouse Left Click to select the Patch order (click the image patch color)

  5. Press 'q' to exit -> system will auto generate the PatchInfo and SepInfo Information.

System Generated

After Segment and Render Streamlines on each patch, system will auto generate the following files

  • _data_ : The Generated Tensor Data

  • Frame info : .obj .seg .txt .xml

Example Root Directory Files
Example _tensor_ Directory Files
PatchText.py Image View