Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

outputLimits

Class: projective2d

Find output spatial limits given input spatial limits

Syntax

[xLimitsOut,yLimitsOut] = outputLimits(tform,xLimitsIn,yLimitsIn)

Description

[xLimitsOut,yLimitsOut] = outputLimits(tform,xLimitsIn,yLimitsIn) estimates the output spatial limits corresponding to a given geometric transformation, tform, and a set of input spatial limits.

Input Arguments

tform

Geometric transformation, specified as an projective2d geometric transformation object.

xLimitsIn

Input spatial limits in X dimension, specified as a two-element vector of doubles.

yLimitsIn

Input spatial limits in Y dimension, specified as a two-element vector of doubles.

Output Arguments

xLimitsOut

Output spatial limits in X dimension, returned as a two-element vector of doubles.

yLimitsOut

Output spatial limits in Y dimension, returned as a two-element vector of doubles.

Examples

expand all

Create an projective2d object that defines a transformation.

theta = 10;
tform = affine2d([cosd(theta) -sind(theta) 0; sind(theta) cosd(theta) 0; 0 0 1]);
tform = 

  affine2d with properties:

                 T: [3x3 double]
    Dimensionality: 2

Estimate the output spatial limits, given the geometric transformation.

[xlim, ylim] = outputLimits(tform,[1 240],[1 291])
xlim =

    1.1459  189.2220


ylim =

  -32.5526   73.2307
Was this topic helpful?