gocv

package
v0.0.131 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 3, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	OrientationType_name = map[int32]string{
		0: "UndefinedOrientation",
		1: "TopLeftOrientation",
		2: "TopRightOrientation",
		3: "BottomRightOrientation",
		4: "BottomLeftOrientation",
		5: "LeftTopOrientation",
		6: "RightTopOrientation",
		7: "RightBottomOrientation",
		8: "LeftBottomOrientation",
	}
	OrientationType_value = map[string]int32{
		"UndefinedOrientation":   0,
		"TopLeftOrientation":     1,
		"TopRightOrientation":    2,
		"BottomRightOrientation": 3,
		"BottomLeftOrientation":  4,
		"LeftTopOrientation":     5,
		"RightTopOrientation":    6,
		"RightBottomOrientation": 7,
		"LeftBottomOrientation":  8,
	}
)

Enum value maps for OrientationType.

View Source
var (
	ColorspaceType_name = map[int32]string{
		0:  "UndefinedColorspace",
		1:  "RGBColorspace",
		2:  "GRAYColorspace",
		3:  "TransparentColorspace",
		4:  "OHTAColorspace",
		5:  "XYZColorspace",
		6:  "YCCColorspace",
		7:  "YIQColorspace",
		8:  "YPbPrColorspace",
		9:  "YUVColorspace",
		10: "CMYKColorspace",
		11: "sRGBColorspace",
		12: "HSLColorspace",
		13: "HWBColorspace",
		14: "LABColorspace",
		15: "CineonLogRGBColorspace",
		16: "Rec601LumaColorspace",
		17: "Rec601YCbCrColorspace",
		18: "Rec709LumaColorspace",
		19: "Rec709YCbCrColorspace",
	}
	ColorspaceType_value = map[string]int32{
		"UndefinedColorspace":    0,
		"RGBColorspace":          1,
		"GRAYColorspace":         2,
		"TransparentColorspace":  3,
		"OHTAColorspace":         4,
		"XYZColorspace":          5,
		"YCCColorspace":          6,
		"YIQColorspace":          7,
		"YPbPrColorspace":        8,
		"YUVColorspace":          9,
		"CMYKColorspace":         10,
		"sRGBColorspace":         11,
		"HSLColorspace":          12,
		"HWBColorspace":          13,
		"LABColorspace":          14,
		"CineonLogRGBColorspace": 15,
		"Rec601LumaColorspace":   16,
		"Rec601YCbCrColorspace":  17,
		"Rec709LumaColorspace":   18,
		"Rec709YCbCrColorspace":  19,
	}
)

Enum value maps for ColorspaceType.

View Source
var File_gocv_gocv_magick_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ColorspaceType added in v0.0.86

type ColorspaceType int32

graphics-magick/include/magick/colorspace.h

const (
	ColorspaceType_UndefinedColorspace    ColorspaceType = 0
	ColorspaceType_RGBColorspace          ColorspaceType = 1 // Plain old RGB colorspace
	ColorspaceType_GRAYColorspace         ColorspaceType = 2 // Plain old full-range grayscale
	ColorspaceType_TransparentColorspace  ColorspaceType = 3 // RGB but preserve matte channel during quantize
	ColorspaceType_OHTAColorspace         ColorspaceType = 4
	ColorspaceType_XYZColorspace          ColorspaceType = 5 // CIE XYZ
	ColorspaceType_YCCColorspace          ColorspaceType = 6 // Kodak PhotoCD PhotoYCC
	ColorspaceType_YIQColorspace          ColorspaceType = 7
	ColorspaceType_YPbPrColorspace        ColorspaceType = 8
	ColorspaceType_YUVColorspace          ColorspaceType = 9
	ColorspaceType_CMYKColorspace         ColorspaceType = 10 // Cyan, magenta, yellow, black, alpha
	ColorspaceType_sRGBColorspace         ColorspaceType = 11 // Kodak PhotoCD sRGB
	ColorspaceType_HSLColorspace          ColorspaceType = 12 // Hue, saturation, luminosity
	ColorspaceType_HWBColorspace          ColorspaceType = 13 // Hue, whiteness, blackness
	ColorspaceType_LABColorspace          ColorspaceType = 14 // LAB colorspace not supported yet other than via lcms
	ColorspaceType_CineonLogRGBColorspace ColorspaceType = 15 // RGB data with Cineon Log scaling, 2.048 density range
	ColorspaceType_Rec601LumaColorspace   ColorspaceType = 16 // Luma (Y) according to ITU-R 601
	ColorspaceType_Rec601YCbCrColorspace  ColorspaceType = 17 // YCbCr according to ITU-R 601
	ColorspaceType_Rec709LumaColorspace   ColorspaceType = 18 // Luma (Y) according to ITU-R 709
	ColorspaceType_Rec709YCbCrColorspace  ColorspaceType = 19 // YCbCr according to ITU-R 709
)

func (ColorspaceType) Descriptor added in v0.0.86

func (ColorspaceType) Enum added in v0.0.86

func (x ColorspaceType) Enum() *ColorspaceType

func (ColorspaceType) EnumDescriptor deprecated added in v0.0.86

func (ColorspaceType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ColorspaceType.Descriptor instead.

func (ColorspaceType) Number added in v0.0.86

func (ColorspaceType) String added in v0.0.86

func (x ColorspaceType) String() string

func (ColorspaceType) Type added in v0.0.86

type MagickImageDecodeRequest added in v0.0.86

type MagickImageDecodeRequest struct {
	Image            []byte `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"`
	TargetColorSpace string `protobuf:"bytes,2,opt,name=target_color_space,json=targetColorSpace,proto3" json:"target_color_space,omitempty"` // support BGR BGRA GRA GRAYA, default BGRA
	// contains filtered or unexported fields
}

func (*MagickImageDecodeRequest) Descriptor deprecated added in v0.0.86

func (*MagickImageDecodeRequest) Descriptor() ([]byte, []int)

Deprecated: Use MagickImageDecodeRequest.ProtoReflect.Descriptor instead.

func (*MagickImageDecodeRequest) GetImage added in v0.0.86

func (x *MagickImageDecodeRequest) GetImage() []byte

func (*MagickImageDecodeRequest) GetTargetColorSpace added in v0.0.86

func (x *MagickImageDecodeRequest) GetTargetColorSpace() string

func (*MagickImageDecodeRequest) ProtoMessage added in v0.0.86

func (*MagickImageDecodeRequest) ProtoMessage()

func (*MagickImageDecodeRequest) ProtoReflect added in v0.0.86

func (x *MagickImageDecodeRequest) ProtoReflect() protoreflect.Message

func (*MagickImageDecodeRequest) Reset added in v0.0.86

func (x *MagickImageDecodeRequest) Reset()

func (*MagickImageDecodeRequest) String added in v0.0.86

func (x *MagickImageDecodeRequest) String() string

type MagickImageDecodeResponse added in v0.0.86

type MagickImageDecodeResponse struct {
	Error           *code.CgoError  `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
	CvMatPointer    int64           `protobuf:"varint,2,opt,name=cv_mat_pointer,json=cvMatPointer,proto3" json:"cv_mat_pointer,omitempty"` // pointer of cv::Mat
	Rows            int64           `protobuf:"varint,3,opt,name=rows,proto3" json:"rows,omitempty"`                                       //  Image height
	Columns         int64           `protobuf:"varint,4,opt,name=columns,proto3" json:"columns,omitempty"`                                 //  Image width
	Magick          string          `protobuf:"bytes,5,opt,name=magick,proto3" json:"magick,omitempty"`                                    // File type magick identifier (.e.g "GIF")
	OrientationType OrientationType ``                                                                                                     /* 141-byte string literal not displayed */
	ColorspaceType  ColorspaceType  ``                                                                                                     /* 137-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*MagickImageDecodeResponse) Descriptor deprecated added in v0.0.86

func (*MagickImageDecodeResponse) Descriptor() ([]byte, []int)

Deprecated: Use MagickImageDecodeResponse.ProtoReflect.Descriptor instead.

func (*MagickImageDecodeResponse) GetColorspaceType added in v0.0.86

func (x *MagickImageDecodeResponse) GetColorspaceType() ColorspaceType

func (*MagickImageDecodeResponse) GetColumns added in v0.0.86

func (x *MagickImageDecodeResponse) GetColumns() int64

func (*MagickImageDecodeResponse) GetCvMatPointer added in v0.0.86

func (x *MagickImageDecodeResponse) GetCvMatPointer() int64

func (*MagickImageDecodeResponse) GetError added in v0.0.86

func (x *MagickImageDecodeResponse) GetError() *code.CgoError

func (*MagickImageDecodeResponse) GetMagick added in v0.0.86

func (x *MagickImageDecodeResponse) GetMagick() string

func (*MagickImageDecodeResponse) GetOrientationType added in v0.0.86

func (x *MagickImageDecodeResponse) GetOrientationType() OrientationType

func (*MagickImageDecodeResponse) GetRows added in v0.0.86

func (x *MagickImageDecodeResponse) GetRows() int64

func (*MagickImageDecodeResponse) ProtoMessage added in v0.0.86

func (*MagickImageDecodeResponse) ProtoMessage()

func (*MagickImageDecodeResponse) ProtoReflect added in v0.0.86

func (*MagickImageDecodeResponse) Reset added in v0.0.86

func (x *MagickImageDecodeResponse) Reset()

func (*MagickImageDecodeResponse) String added in v0.0.86

func (x *MagickImageDecodeResponse) String() string

type MagickInitializeMagickRequest

type MagickInitializeMagickRequest struct {
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

func (*MagickInitializeMagickRequest) Descriptor deprecated

func (*MagickInitializeMagickRequest) Descriptor() ([]byte, []int)

Deprecated: Use MagickInitializeMagickRequest.ProtoReflect.Descriptor instead.

func (*MagickInitializeMagickRequest) GetPath

func (*MagickInitializeMagickRequest) ProtoMessage

func (*MagickInitializeMagickRequest) ProtoMessage()

func (*MagickInitializeMagickRequest) ProtoReflect

func (*MagickInitializeMagickRequest) Reset

func (x *MagickInitializeMagickRequest) Reset()

func (*MagickInitializeMagickRequest) String

type MagickInitializeMagickResponse

type MagickInitializeMagickResponse struct {
	Error *code.CgoError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*MagickInitializeMagickResponse) Descriptor deprecated

func (*MagickInitializeMagickResponse) Descriptor() ([]byte, []int)

Deprecated: Use MagickInitializeMagickResponse.ProtoReflect.Descriptor instead.

func (*MagickInitializeMagickResponse) GetError

func (*MagickInitializeMagickResponse) ProtoMessage

func (*MagickInitializeMagickResponse) ProtoMessage()

func (*MagickInitializeMagickResponse) ProtoReflect

func (*MagickInitializeMagickResponse) Reset

func (x *MagickInitializeMagickResponse) Reset()

func (*MagickInitializeMagickResponse) String

type OrientationType added in v0.0.86

type OrientationType int32
const (
	OrientationType_UndefinedOrientation   OrientationType = 0
	OrientationType_TopLeftOrientation     OrientationType = 1
	OrientationType_TopRightOrientation    OrientationType = 2
	OrientationType_BottomRightOrientation OrientationType = 3
	OrientationType_BottomLeftOrientation  OrientationType = 4
	OrientationType_LeftTopOrientation     OrientationType = 5
	OrientationType_RightTopOrientation    OrientationType = 6
	OrientationType_RightBottomOrientation OrientationType = 7
	OrientationType_LeftBottomOrientation  OrientationType = 8
)

func (OrientationType) Descriptor added in v0.0.86

func (OrientationType) Enum added in v0.0.86

func (x OrientationType) Enum() *OrientationType

func (OrientationType) EnumDescriptor deprecated added in v0.0.86

func (OrientationType) EnumDescriptor() ([]byte, []int)

Deprecated: Use OrientationType.Descriptor instead.

func (OrientationType) Number added in v0.0.86

func (OrientationType) String added in v0.0.86

func (x OrientationType) String() string

func (OrientationType) Type added in v0.0.86

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL