I’m trying to do some probabilistic programming and generate some ellipses to look like the target image. In theory this can work but it is quite slow as the way I’m drawing ellipses is using Luxor. As far as I can see, the only way to compare images (and compute a difference score) is to write Luxor’s drawing surface to file and then read it via the JuliaImages library. As I expect to do this comparison many times, writing to file and then reading is very slow.
Is there a way to rasterize the drawing by Luxor into a N-D image? If not, what other libraries can I use to directly draw onto an N-D array?