Image Action Set

Example 13.1 Use Sliding Window without Mutating Using the augmentImages Action

Use Sliding Window without Mutating Using the augmentImages Action

This example is not available for the CAS language.

Use Sliding Window without Mutating Using the augmentImages Action

This example is not available for the Lua programming language.

Use Sliding Window without Mutating Using the augmentImages Action

The following Python code uses the augmentImages action to create patches from an input image. Patches are created with a size of 250 250 by using a step size (also known as stride) of 250, starting from the (0,0) point. Then each patch is resized to 100 100. The images are not mutated at all.

s.image.augmentImages(
    casout={'name':'imgsOut'},
    croplist=[
        { 
            'sweepimage':True,
            'x':0,
            'y':0,
            'width':250,
            'height':250,
            'stepsize':250,
            'outputwidth':100,
            'outputheight':100
        }
    ],
    table={'name':'imgs'}
)

Use Sliding Window without Mutating Using the augmentImages Action

This example is not available for the R programming language.

Last updated: June 07, 2018