Border handling aside, fast_demo will show how to use the slicer class ; you can already edit the first "Block" object to specify a demosaicing sub-region