Skip to content

com.inscoper.api.RoiCrop

RoiCrop class defines a Region Of Interest for cropping. More...

Public Functions

Name
synchronized void delete()
RoiCrop()
Default constructor.
int getHeight()
Get height.
void setHeight(int height)
Set height.
int getWidth()
Get width.
void setWidth(int width)
Set width.
int getX()
Get X coordinate.
void setX(int x)
Set X coordinate.
int getY()
Get Y coordinate.
void setY(int y)
Set Y coordinate.

Protected Functions

Name
RoiCrop(long cPtr, boolean cMemoryOwn)
void finalize()
long getCPtr(RoiCrop obj)
long swigRelease(RoiCrop obj)

Protected Attributes

Name
transient boolean swigCMemOwn

Detailed Description

public class com.inscoper.api.RoiCrop;

RoiCrop class defines a Region Of Interest for cropping.

Specifies a rectangular region defined by its top-left coordinates (x, y) and its dimensions (width, height) to be used for image cropping operations.

Public Functions Documentation

function delete

public synchronized void delete()

function RoiCrop

public RoiCrop()

Default constructor.

Initializes a RoiCrop with all values set to 0.

function getHeight

public int getHeight()

Get height.

Return: The height value

Retrieves the height of the crop region.

function setHeight

public void setHeight(
    int height
)

Set height.

Parameters:

  • height : The new height value

Sets the height of the crop region.

function getWidth

public int getWidth()

Get width.

Return: The width value

Retrieves the width of the crop region.

function setWidth

public void setWidth(
    int width
)

Set width.

Parameters:

  • width : The new width value

Sets the width of the crop region.

function getX

public int getX()

Get X coordinate.

Return: The X coordinate

Retrieves the X coordinate (left) of the crop region.

function setX

public void setX(
    int x
)

Set X coordinate.

Parameters:

  • x : The new X coordinate

Sets the X coordinate (left) of the crop region.

function getY

public int getY()

Get Y coordinate.

Return: The Y coordinate

Retrieves the Y coordinate (top) of the crop region.

function setY

public void setY(
    int y
)

Set Y coordinate.

Parameters:

  • y : The new Y coordinate

Sets the Y coordinate (top) of the crop region.

Protected Functions Documentation

function RoiCrop

protected RoiCrop(
    long cPtr,
    boolean cMemoryOwn
)

function finalize

protected void finalize()

function getCPtr

protected static long getCPtr(
    RoiCrop obj
)

function swigRelease

protected static long swigRelease(
    RoiCrop obj
)

Protected Attributes Documentation

variable swigCMemOwn

transient boolean swigCMemOwn;

Updated on 2026-04-02 at 10:55:38 +0200