OpenCV Backend #580
Replies: 1 comment 3 replies
-
An alternative rasterising backend would be a good idea, whether that be cairo, agg, openCV or something else. Matplotlib was chosen initially primarily because you can draw in data units rather than in pixels. For example if your drawing consists of a single line: (100000, 100000) to (100001, 100001) then you can simply draw a line with those coordinates and matplotlib will calculate the bounds of the image for you. This is less of a concern now as ezdxf now has bounding box calculation built-in, so you can first get the bounds of the dxf document then transform all the units to pixels before rendering. There are some other advantages of matplotlib:
So overall I still think matplotlib was a good choice, but there are definitely requirements like speed that an another backend could serve better |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Would you consider adding support to opencv as a backend? it runs X10 times faster than matplotlib and supports the same functionality (as far as I can tell).
Why didn't you use opencv to begin with?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions