Closed mhirsch closed 3 years ago
Hi @mhirsch, you need:
resize (Kernel Kernel_type.LINEAR) 1.2 1.2 A1
Kernel_type.LINEAR
is an enum which numbers / names / describes the basic kernel types. Kernel
is the class, an instance of which you need to pass to resize
.
Thanks!
In
nipguide.pdf
, p.49 it lists aresize
function defined in_stdenv
. In nip2 8.7.1 it's defined in my_stdenv.def
file asWhen I try to use it like
resize Kernel_type.LINEAR 1.2 1.2 Image_new_item.Image_black_item.action
I get an error:Bad left hand side of '.'.
Apologies if I'm misunderstanding something. I'd like to iterate over a list of images and resize each one, where the scale factor is determined programmatically.
Thanks for your help!