Applying an Interface for a Specific Type

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!

+4
source share

Source: https://habr.com/ru/post/1695056/


All Articles