I work with images that have color components, spatial components, and normal normal components. Therefore, I defined a StaticArray of 9 components.
using StaticArrays
const RGBDN{T} = SVector{9,T}
const RGBDNImage{T} = Matrix{RGBDN{T}} where T<:Number
I want to adapt and use some methods from ImageSegmentation.jl . Some of these methods accept a data type derived from the type Delegate.jl or TypedDelegation.jl to have array behavior, but in the same type as Colorant, without reimplementing everything.
Thank!
source
share