Closed RyoWakabayashi closed 1 week ago
Hi @RyoWakabayashi, thanks for reporting this issue. Is it possible for you to share some minimal code to reproduce this error?
Hi @RyoWakabayashi, once #256 is merged you can follow the example below to specify the colormap.
iex> img = Evision.imread("test/testdata/dog.jpg")
%Evision.Mat{
channels: 3,
dims: 2,
type: {:u, 8},
raw_type: 16,
shape: {576, 768, 3},
ref: #Reference<0.3798908985.2397700162.237747>
}
iex> Evision.applyColorMap(src: img, colormap: Evision.Constant.cv_COLORMAP_AUTUMN)
%Evision.Mat{
channels: 3,
dims: 2,
type: {:u, 8},
raw_type: 16,
shape: {576, 768, 3},
ref: #Reference<0.3798908985.2397700154.237107>
}
@cocoa-xu
Thank you. It worked correctly.
mt_fuji_dem_color = Evision.applyColorMap(src: mt_fuji_dem_u8, colormap: Evision.Constant.cv_COLORMAP_JET())
Evision.resize(mt_fuji_dem_color, {640, 640})
When running the applyColorMap function in evision 0.2.3, the following error occurs: