lets-plot-kotlin icon indicating copy to clipboard operation
lets-plot-kotlin copied to clipboard

How to make geomImage display 2d array?

Open koodzi opened this issue 3 years ago • 1 comments

Is it possible to use geomImag like in this examples? https://nbviewer.org/github/JetBrains/lets-plot-docs/blob/master/source/examples/cookbook/image_101.ipynb

koodzi avatar Feb 11 '22 12:02 koodzi

We haven't added geomImage to the Kotlin API yet. Perhaps we should do it.

Currently you can try to use geomRaster (see an example in its Python' counterpart geom_raster). It doesn't work with 2d arrays though.

alshan avatar Feb 11 '22 20:02 alshan

Hi @koodzi ! What data-structure(s) would be preferable for storing a grayscale (2D) or color (RGB(A) - 3D) image data? Do you read images from files (png, tif, DEM-files) or generate them?

alshan avatar Nov 30 '22 17:11 alshan

geomImage() added in v4.2.0

See demos: image_101, image_fisher_boat, image_grayscale, image_extent

alshan avatar Dec 30 '22 20:12 alshan