## -*- mode: tcl ; fill-column: 90 -*-
# # ## ### ##### ######## ############# #####################
## Transformers -- Structural changes (data re-arrangements)
# # ## ### ##### ######## ############# #####################
## Highlevel operations implemented on top of the C core
#
## - Split into rows, columns, or bands
operator {coordinate dimension thing} {
op::split::x x width column
op::split::y y height row
op::split::z z depth band
} {
section transform structure
note Returns list containing each $thing of the input as separate image.
input
body {
set end [aktive query @@dimension@@ $src]
set r {}
for {set k 0} {$k < $end} {incr k} {
lappend r [aktive op select @@coordinate@@ $src from $k]
}
return $r
}
}
##
# # ## ### ##### ######## ############# #####################
::return
|