Skip to content

Commit

Permalink
add function for colorspace indexing
Browse files Browse the repository at this point in the history
- add new function for colorspace indexing
  • Loading branch information
Minku-Koo committed Jun 30, 2023
1 parent a19b958 commit da377d7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pypipo/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@ def convert_image(filepath, outputpath, **kwargs):
print('=== convert image ===')

painting = Painting(filepath)
p, color_index_map = painting.run(**kwargs)
painting_img, color_index_map = painting.run(**kwargs)
colorNames_, colors_ = painting.getColorFromImage(painting_img)


drawing = LineDrawing(color_index_map)
line_drawn_image = drawing.run(outline = True)
img_lab, lab = drawing.getImgLabelFromImage(colors_, painting_img)
drawing.save(outputpath, line_drawn_image)

return
Expand Down

0 comments on commit da377d7

Please sign in to comment.