imsplit() can split along an axis into equal sized segments, but what if the split needs to happen at places that are not equal in length? i.e. at c(10,50,100). is there a way to pass a vector of split locations? And if there's an issue with mismatching dimensions, just pad() all shorter frames to match the largest on the xy dimension?
That's not supported at the moment, sorry. I'd just use
imsub(im,x < cut)
recursively (not super efficient, though). Happy to accept a pull request with a better solution!
imsplit()
can split along an axis into equal sized segments, but what if the split needs to happen at places that are not equal in length? i.e. atc(10,50,100)
. is there a way to pass a vector of split locations? And if there's an issue with mismatching dimensions, just pad() all shorter frames to match the largest on the xy dimension?