Line Art Data Format

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

Manually Set Up

1. Root Directory

Example Root Directory Files
  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

Example _tensor_ Directory Files
  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

  • 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 Image View

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

Last updated

Was this helpful?