Skip to content

Class mediapipe::Location

ClassList > mediapipe > Location

Public Functions

Type Name
T ConvertToBBox (int image_width, int image_height) const
Rectangle_i ConvertToBBox (int image_width, int image_height) const
std::vector< Point2_i > ConvertToKeypoints (int image_width, int image_height) const
void ConvertToProto (LocationData * proto) const
LocationData ConvertToProto () const
Rectangle_f ConvertToRelativeBBox (int image_width, int image_height) const
Location & Crop (const Rectangle_i & crop_rectangle)
Location & Crop (const Rectangle_f & crop_rectangle)
T GetBBox () const
Rectangle_i GetBBox () const
LocationData::Format GetFormat () const
Rectangle_f GetRelativeBBox () const
std::vector< Point2_f > GetRelativeKeypoints () const
Location ()
Location (const LocationData & location_data)
Location & Scale (float scale)
void SetFromProto (const LocationData & proto)
void SetRelativeKeypoints (const std::vector< Point2_f > & keypoints)
Location & ShiftToFitBestIntoImage (int image_width, int image_height)
Location & Square (int image_width, int image_height)
bool operator!= (const Location & other) const
bool operator== (const Location & other) const

Public Static Functions

Type Name
Location CreateBBoxLocation (int xmin, int ymin, int width, int height)
Location CreateBBoxLocation (const Rectangle_i & rect)
Location CreateBBoxLocation (const ::mediapipe::BoundingBox & bbox)
Location CreateGlobalLocation ()
Location CreateRelativeBBoxLocation (float relative_xmin, float relative_ymin, float relative_width, float relative_height)
Location CreateRelativeBBoxLocation (const Rectangle_f & relative_rect)
bool IsValidLocationData (const LocationData & location_data)

Public Functions Documentation

function ConvertToBBox [1/2]

template<typename T>
T mediapipe::Location::ConvertToBBox (
    int image_width,
    int image_height
) const

function ConvertToBBox [2/2]

template<>
Rectangle_i mediapipe::Location::ConvertToBBox (
    int image_width,
    int image_height
) const

function ConvertToKeypoints

std::vector< Point2_i > mediapipe::Location::ConvertToKeypoints (
    int image_width,
    int image_height
) const

function ConvertToProto [1/2]

void mediapipe::Location::ConvertToProto (
    LocationData * proto
) const

function ConvertToProto [2/2]

LocationData mediapipe::Location::ConvertToProto () const

function ConvertToRelativeBBox

Rectangle_f mediapipe::Location::ConvertToRelativeBBox (
    int image_width,
    int image_height
) const

function Crop [1/2]

Location & mediapipe::Location::Crop (
    const Rectangle_i & crop_rectangle
) 

function Crop [2/2]

Location & mediapipe::Location::Crop (
    const Rectangle_f & crop_rectangle
) 

function GetBBox [1/2]

template<typename T>
T mediapipe::Location::GetBBox () const

function GetBBox [2/2]

template<>
Rectangle_i mediapipe::Location::GetBBox () const

function GetFormat

LocationData::Format mediapipe::Location::GetFormat () const

function GetRelativeBBox

Rectangle_f mediapipe::Location::GetRelativeBBox () const

function GetRelativeKeypoints

std::vector< Point2_f > mediapipe::Location::GetRelativeKeypoints () const

function Location [1/2]

mediapipe::Location::Location () 

function Location [2/2]

explicit mediapipe::Location::Location (
    const LocationData & location_data
) 

function Scale

Location & mediapipe::Location::Scale (
    float scale
) 

function SetFromProto

void mediapipe::Location::SetFromProto (
    const LocationData & proto
) 

function SetRelativeKeypoints

void mediapipe::Location::SetRelativeKeypoints (
    const std::vector< Point2_f > & keypoints
) 

function ShiftToFitBestIntoImage

Location & mediapipe::Location::ShiftToFitBestIntoImage (
    int image_width,
    int image_height
) 

function Square

Location & mediapipe::Location::Square (
    int image_width,
    int image_height
) 

function operator!=

bool mediapipe::Location::operator!= (
    const Location & other
) const

function operator==

bool mediapipe::Location::operator== (
    const Location & other
) const

Public Static Functions Documentation

function CreateBBoxLocation [1/3]

static Location mediapipe::Location::CreateBBoxLocation (
    int xmin,
    int ymin,
    int width,
    int height
) 

function CreateBBoxLocation [2/3]

static Location mediapipe::Location::CreateBBoxLocation (
    const Rectangle_i & rect
) 

function CreateBBoxLocation [3/3]

static Location mediapipe::Location::CreateBBoxLocation (
    const ::mediapipe::BoundingBox & bbox
) 

function CreateGlobalLocation

static Location mediapipe::Location::CreateGlobalLocation () 

function CreateRelativeBBoxLocation [1/2]

static Location mediapipe::Location::CreateRelativeBBoxLocation (
    float relative_xmin,
    float relative_ymin,
    float relative_width,
    float relative_height
) 

function CreateRelativeBBoxLocation [2/2]

static Location mediapipe::Location::CreateRelativeBBoxLocation (
    const Rectangle_f & relative_rect
) 

function IsValidLocationData

static bool mediapipe::Location::IsValidLocationData (
    const LocationData & location_data
) 


The documentation for this class was generated from the following file /home/friedel/devel/ILLIXR-plugins/hand_tracking/mediapipe/framework/formats/location.h