Halcon算子學習——image

1.Access (取出)
1.1 get_grayval — Access the gray values of an image object.

get_grayval(Image : : Row, Column : Grayval)
獲取圖像中一點的灰度值
1.2 get_grayval_contour_xld — Return gray values of an image at the positions of an XLD contour.

get_grayval_contour_xld(Image, Contour : : Interpolation : Grayval)
返回一張圖中 XLD 輪廓位置的灰度值(需要先行生成 XLD)
XLD(eXtended Line Description 的縮寫)
Interpolation(插補):nearest_neighbor、bilinear、bicubic 和 bicubic_clipped
1.3 get_grayval_interpolated — Return gray values of an image at the positions given by tuples of rows and columns.

get_grayval_interpolated(Image : : Row, Column, Interpolation : Grayval)
返回一張圖中給定的行列數組位置的灰度值(無需生成 XLD)
1.4 get_image_pointer1 — Access the pointer of a channel.

get_image_pointer1(Image : : : Pointer, Type, Width, Height)
返回圖像第一通道的指針。
1.5 get_image_pointer1_rect — Access to the image data pointer and the image data inside the smallest rectangle of the domain of the input image.

get_image_pointer1_rect(Image : : : PixelPointer, Width, Height, VerticalPitch, HorizontalBitPitch, BitsPerPixel)
獲取圖像矩形域的指針
1.6 get_image_pointer3 — Access the pointers of a colored image.

get_image_pointer3(ImageRGB : : : PointerRed, PointerGreen, PointerBlue, Type, Width, Height)
獲取彩色圖像的指針
1.7 get_image_size — Return the size of an image.

get_image_size(Image : : : Width, Height)
獲取圖像 size
1.8 get_image_time — Request time at which the image was created.

get_image_time(Image : : : MSecond, Second, Minute, Hour, Day, YDay, Month, Year)
獲取圖像生成時間
1.9 get_image_type — Return the type of an image.

get_image_type(Image : : : Type)
獲取圖像類型

2.Acquisition(抓取)
2.1 close_all_framegrabbers — Close all image acquisition devices.

close_all_framegrabbers( : : : )
關閉所有圖像獲取設備
2.2 close_framegrabber — Close specified image acquisition device.

close_framegrabber( : : AcqHandle : )
關閉指定圖像獲取設備
2.3 get_framegrabber_callback — Query callback function of an image acquisition device.

get_framegrabber_callback( : : AcqHandle, CallbackType : CallbackFunction, UserContext)
查詢圖像獲取設備的囘調函數
2.4 get_framegrabber_lut — Query look-up table of the image acquisition device.

get_framegrabber_lut( : : AcqHandle : ImageRed, ImageGreen, ImageBlue)
查詢圖像獲取設備的查找表。
2.5 get_framegrabber_param — Query specific parameters of an image acquisition device.

get_framegrabber_param( : : AcqHandle, Param : Value)
查詢圖像獲取設備的指定參數
2.6 grab_data — Synchronous grab of images and preprocessed image data from the specified image acquisition device.

grab_data( : Image, Region, Contours : AcqHandle : Data)
2.7 grab_data_async — Asynchronous grab of images and preprocessed image data from the specified image acquisition device.

grab_data_async( : Image, Region, Contours : AcqHandle, MaxDelay : Data)
2.8 grab_image — Synchronous grab of an image from the specified image acquisition device.

grab_image( : Image : AcqHandle : )
2.9 grab_image_async — Asynchronous grab of an image from the specified image acquisition device.

grab_image_async( : Image : AcqHandle, MaxDelay : )
2.10 grab_image_start — Start an asynchronous grab from the specified image acquisition device.

grab_image_start( : : AcqHandle, MaxDelay : )
2.11 info_framegrabber — Query information about the specified image acquisition interface.

info_framegrabber( : : Name, Query : Information, ValueList)
2.12 open_framegrabber — Open and configure an image acquisition device.

open_framegrabber( : : Name, HorizontalResolution, VerticalResolution, ImageWidth, ImageHeight, StartRow, StartColumn, Field, BitsPerChannel, ColorSpace, Generic, ExternalTrigger, CameraType, Device, Port, LineIn : AcqHandle)
2.13 set_framegrabber_callback — Register a callback function for an image acquisition device.

set_framegrabber_callback( : : AcqHandle, CallbackType, CallbackFunction, UserContext : )
2.14 set_framegrabber_lut — Set look-up table of the image acquisition device.

set_framegrabber_lut( : : AcqHandle, ImageRed, ImageGreen, ImageBlue : )
2.15 set_framegrabber_param — Set specific parameters of an image acquistion device.

set_framegrabber_param( : : AcqHandle, Param, Value : )
3.Channel(通道)
3.1 access_channel — Access a channel of a multichannel image.

access_channel(MultiChannelImage : Image : Channel : )
取出一張多通道圖像中的一個通道
3.2 append_channel — Append additional matrices (channels) to the image.

append_channel(MultiChannelImage, Image : ImageExtended : : )
追加通道到圖像
3.3 channels_to_image — Convert one-channel images into a multichannel image

channels_to_image(Images : MultiChannelImage : : )
將多個單通道圖像轉化為一個多通道圖像
3.4 compose2 — Convert two images into a two-channel image.

compose2(Image1, Image2 : MultiChannelImage : : )
將兩張圖像轉化到一個雙通道圖像
3.5 compose3 — Convert 3 images into a three-channel image.

compose3(Image1, Image2, Image3 : MultiChannelImage : : )
將三張圖轉化為一個 3 通道圖
3.6 compose4 — Convert 4 images into a four-channel image.

compose4(Image1, Image2, Image3, Image4 : MultiChannelImage : : )
3.7 compose5 — Convert 5 images into a five-channel image.

compose5(Image1, Image2, Image3, Image4, Image5 : MultiChannelImage : : )
3.8 compose6 — Convert 6 images into a six-channel image.

compose6(Image1, Image2, Image3, Image4, Image5, Image6 : MultiChannelImage : : )
3.9 compose7 — Convert 7 images into a seven-channel image.

compose7(Image1, Image2, Image3, Image4, Image5, Image6, Image7 : MultiChannelImage : : )
3.10 count_channels — Count channels of image.

count_channels(MultiChannelImage : : : Channels)
計算出圖像的通道數
3.11 decompose2 — Convert a two-channel image into two images.

decompose2(MultiChannelImage : Image1, Image2 : : )
將一個雙通道圖像轉化為兩張圖像
3.12 decompose3 — Convert a three-channel image into three images.

decompose3(MultiChannelImage : Image1, Image2, Image3 : : )
3.13 decompose4 — Convert a four-channel image into four images.

decompose4(MultiChannelImage : Image1, Image2, Image3, Image4 : : )
3.14 decompose5 — Convert a five-channel image into five images.

decompose5(MultiChannelImage : Image1, Image2, Image3, Image4, Image5 : : )

3.15 decompose6 — Convert a six-channel image into six images.

decompose6(MultiChannelImage : Image1, Image2, Image3, Image4, Image5, Image6 : : )
3.16 decompose7 — Convert a seven-channel image into seven images.

decompose7(MultiChannelImage : Image1, Image2, Image3, Image4, Image5, Image6, Image7 : : )
3.17 image_to_channels — Convert a multichannel image into One-channel images

image_to_channels(MultiChannelImage : Images : : )
將一個多通道圖像轉化為單通道圖像數組
4.Creation(創立,生成)
4.1 copy_image — Copy an image and allocate new memory for it.

copy_image(Image : DupImage : : )
將一張圖像拷貝到新內存
4.2 gen_image1 — Create an image from a pointer to the pixels.

gen_image1( : Image : Type, Width, Height, PixelPointer : )
從像素指針生成圖像
4.3 gen_image1_extern — Create an image from a pointer on the pixels with storage management.

gen_image1_extern( : Image : Type, Width, Height, PixelPointer, ClearProc : )
4.4 gen_image1_rect — Create an image with a rectangular domain from a pointer on the pixels (with storage management).

gen_image1_rect( : Image : PixelPointer, Width, Height, VerticalPitch, HorizontalBitPitch, BitsPerPixel, DoCopy, ClearProc : )
4.5 gen_image3 — Create an image from three pointers to the pixels (red/green/blue).

gen_image3( : ImageRGB : Type, Width, Height, PixelPointerRed, PixelPointerGreen, PixelPointerBlue : )
4.6 gen_image3_extern — Create a three-channel image from three pointers on the pixels with storage management.

gen_image3_extern( : Image : Type, Width, Height, PointerRed, PointerGreen, PointerBlue, ClearProc : )
4.7 gen_image_const — Create an image with constant gray value.

gen_image_const( : Image : Type, Width, Height : )
以一個灰度常量創建圖像
4.8 gen_image_gray_ramp — Create a gray value ramp.

gen_image_gray_ramp( : ImageGrayRamp : Alpha, Beta, Mean, Row, Column, Width, Height : )
創建一個灰度斜面圖像

4.9 gen_image_interleaved — Create a three-channel image from a pointer to the interleaved pixels.

gen_image_interleaved( : ImageRGB : PixelPointer, ColorFormat, OriginalWidth, OriginalHeight, Alignment, Type, ImageWidth, ImageHeight, StartRow, StartColumn, BitsPerChannel, BitShift : )
4.10 gen_image_proto — Create an image with a specified constant gray value.

gen_image_proto(Image : ImageCleared : Grayval : )
以一個灰度值創建圖像,圖像 size 源於輸入參數 Image
4.11 gen_image_surface_first_order — Create a tilted gray surface with first order polynomial.

gen_image_surface_first_order( : ImageSurface : Type, Alpha, Beta, Gamma, Row, Col, Width, Height : )
4.12 gen_image_surface_second_order — Create a curved gray surface with second order polynomial.

gen_image_surface_second_order( : ImageSurface : Type, Alpha, Beta, Gamma, Delta, Epsilon, Zeta, Row, Col, Width, Height : )
4.13 region_to_bin — Convert a region into a binary byte-image.

region_to_bin(Region : BinImage : ForegroundGray, BackgroundGray, Width, Height : )
4.14 region_to_label — Convert regions to a label image.

region_to_label(Region : ImageLabel : Type, Width, Height : )
4.15 region_to_mean — Paint regions with their average gray value.

region_to_mean(Regions, Image : ImageMean : : )
5.Domain(範圍)
5.1 add_channels — Add gray values to regions.

add_channels(Regions, Image : GrayRegions : : )
添加灰度值到 region 區域
5.2 change_domain — Change definition domain of an image.

change_domain(Image, NewDomain : ImageNew : : )
改變圖像的定義範圍
5.3 full_domain — Expand the domain of an image to maximum.

full_domain(Image : ImageFull : : )
擴散圖像範圍
5.4 get_domain — Get the domain of an image.

get_domain(Image : Domain : : )
獲取圖像範圍
5.5 rectangle1_domain — Reduce the domain of an image to a rectangle.

rectangle1_domain(Image : ImageReduced : Row1, Column1, Row2, Column2 : )
去除圖像的方形範圍
5.6 reduce_domain — Reduce the domain of an image.

reduce_domain(Image, Region : ImageReduced : : )
去除圖像範圍
6.Features(特徵)

6.1 area_center_gray — Compute the area and center of gravity of a region in a gray value image.

area_center_gray(Regions, Image : : : Area, Row, Column)
計算灰度圖像中 region 的面積和中心點
6.2 cooc_feature_image — Calculate a co-occurrence matrix and derive gray value features thereof.

cooc_feature_image(Regions, Image : : LdGray, Direction : Energy, Correlation, Homogeneity, Contrast)
計算一個同時出現的矩陣并得出相關灰度值特徵。
6.3 cooc_feature_matrix — Calculate gray value features from a co-occurrence matrix.

cooc_feature_matrix(CoocMatrix : : : Energy, Correlation, Homogeneity, Contrast)
從一個同時出現的矩陣計算灰度值特徵
6.4 elliptic_axis_gray — Compute the orientation and major axes of a region in a gray value image.

elliptic_axis_gray(Regions, Image : : : Ra, Rb, Phi)
在一個灰度值圖像中計算一個區域的方位和主軸。
6.5 entropy_gray — Determine the entropy and anisotropy of images.

entropy_gray(Regions, Image : : : Entropy, Anisotropy)
確定一個圖像的熵和各向異性。
6.6 estimate_noise — Estimate the image noise from a single image.

estimate_noise(Image : : Method, Percent : Sigma)
從一個單一圖像估計圖像噪聲
6.7 fit_surface_first_order — Calculate gray value moments and approximation by a first order surface (plane).

fit_surface_first_order(Regions, Image : : Algorithm, Iterations, ClippingFactor : Alpha, Beta, Gamma)
通過一個一階表面(平面)計算灰度值力矩和近似值。
6.8 fit_surface_second_order — Calculate gray value moments and approximation by a second order surface.

fit_surface_second_order(Regions, Image : : Algorithm, Iterations, ClippingFactor : Alpha, Beta, Gamma, Delta, Epsilon, Zeta)
通過一個二階表面(平面)計算灰度值力矩和近似值。
6.9 fuzzy_entropy — Determine the fuzzy entropy of regions.

fuzzy_entropy(Regions, Image : : Apar, Cpar : Entropy)
確定區域的模糊熵
6.10 fuzzy_perimeter — Calculate the fuzzy perimeter of a region.

fuzzy_perimeter(Regions, Image : : Apar, Cpar : Perimeter)
計算一個區域的模糊周長
6.11 gen_cooc_matrix — Calculate the co-occurrence matrix of a region in an image.

gen_cooc_matrix(Regions, Image : Matrix : LdGray, Direction : )
在一個圖像中計算一個區域中同時出現的矩陣
6.12 gray_features — Calculates gray value features for a set of regions.

gray_features(Regions, Image : : Features : Value)
計算一個設置區域的灰度值特徵
6.13 gray_histo — Calculate the gray value distribution.

gray_histo(Regions, Image : : : AbsoluteHisto, RelativeHisto)
計算灰度值分佈
6.14 gray_histo_abs — Calculate the gray value distribution.

gray_histo_abs(Regions, Image : : Quantization : AbsoluteHisto)
計算灰度值分佈
6.15 gray_histo_range — Calculate the gray value distribution of a single channel image within a certain gray value range.

gray_histo_range(Regions, Image : : Min, Max, NumBins : Histo, BinSize)
計算一個單通道圖像在一定灰度值範圍內的灰度值分佈
6.16 gray_projections — Calculate horizontal and vertical gray-value projections.

gray_projections(Region, Image : : Mode : HorProjection, VertProjection)
計算水平和垂直灰度值預測
6.17 histo_2dim — Calculate the histogram of two-channel gray value images.

histo_2dim(Regions, ImageCol, ImageRow : Histo2Dim : : )
計算兩通道灰度值圖像的直方圖
6.18 intensity — Calculate the mean and deviation of gray values.

intensity(Regions, Image : : : Mean, Deviation)
計算灰度值的平均值和偏差
6.19 min_max_gray — Determine the minimum and maximum gray values within regions.

min_max_gray(Regions, Image : : Percent : Min, Max, Range)
計算區域內的最大和最小灰度值
6.20 moments_gray_plane — Calculate gray value moments and approximation by a plane.

moments_gray_plane(Regions, Image : : : MRow, MCol, Alpha, Beta, Mean)
通過一個平面計算灰度值力矩和近似值
6.21 plane_deviation — Calculate the deviation of the gray values from the approximating image plane.

plane_deviation(Regions, Image : : : Deviation)
從近似像平面計算灰度值的偏差
6.22 select_gray — Select regions based on gray value features.

select_gray(Regions, Image : SelectedRegions : Features, Operation, Min, Max : )
基於灰度值特徵選擇區域
6.23 shape_histo_all — Determine a histogram of features along all threshold values.

shape_histo_all(Region, Image : : Feature : AbsoluteHisto, RelativeHisto)
通過閾值確定一個特徵直方圖
6.24 shape_histo_point — Determine a histogram of features along all threshold values.

shape_histo_point(Region, Image : : Feature, Row, Column : AbsoluteHisto, RelativeHisto)
通過閾值確定一個特徵直方圖
7.Format(格式)
7.1 change_format — Change image size.

change_format(Image : ImagePart : Width, Height : )
改變圖像的 size
7.2 crop_domain — Cut out of defined gray values.

crop_domain(Image : ImagePart : : )
去除指定的灰度值
7.3 crop_domain_rel — Cut out an image area relative to the domain.

crop_domain_rel(Image : ImagePart : Top, Left, Bottom, Right : )
去除和定義域有關的圖像區域
7.4 crop_part — Cut out a rectangular image area.

crop_part(Image : ImagePart : Row, Column, Width, Height : )
去除一個矩形圖像區域
7.5 crop_rectangle1 — Cut out a rectangular image area.

crop_rectangle1(Image : ImagePart : Row1, Column1, Row2, Column2 : )
去除一個矩形圖像區域(矩形的選擇與 crop_part 不同)
7.6 tile_channels — Tile multiple images into a large image.

tile_channels(Image : TiledImage : NumColumns, TileOrder : )
把多重圖像拼成一個大圖像
7.7 tile_images — Tile multiple image objects into a large image.

tile_images(Images : TiledImage : NumColumns, TileOrder : )
把多重圖像目標拼成一個大圖像
7.8 tile_images_offset — Tile multiple image objects into a large image with explicit positioning information.

tile_images_offset(Images : TiledImage : OffsetRow, OffsetCol, Row1, Col1, Row2, Col2, Width, Height : )
把多重圖像目標拼成一個有確定的位置信息的大圖像
8.Manipulation(操作)
8.1 overpaint_gray — Overpaint the gray values of an image.

overpaint_gray(ImageDestination, ImageSource : : : )
重新繪製一個圖像的灰度值
8.2 overpaint_region — Overpaint regions in an image.

overpaint_region(Image, Region : : Grayval, Type : )
重新繪製一個圖像的區域
8.3 paint_gray — Paint the gray values of an image into another image.

paint_gray(ImageSource, ImageDestination : MixedImage : : )
把一個圖像的灰度值畫在另一個圖像上
8.4 paint_region — Paint regions into an image.

paint_region(Region, Image : ImageResult : Grayval, Type : )
把區域畫在一個圖像中
8.5 paint_xld — Paint XLD objects into an image.

paint_xld(XLD, Image : ImageResult : Grayval : )
把 XLD 目標化在一個圖像中
8.6 set_grayval — Set single gray values in an image.

set_grayval(Image : : Row, Column, Grayval : )
在一個圖像中設置一個點的灰度值
9.Type Conversion(類型轉換)
9.1 complex_to_real — Convert a complex image into two real images.

complex_to_real(ImageComplex : ImageReal, ImageImaginary : : )
把一個複數圖像轉化為兩個圖像(一個是實部,另一個是虛部,可參考 z=a+bi)
9.2 convert_image_type — Convert the type of an image.

convert_image_type(Image : ImageConverted : NewType : )
轉換圖像類型
NewType (input_control) string → (string)

Desired image type (i.e., type of the gray values).

Default value: ‘byte’

List of values: ‘int1’, ‘int2’, ‘uint2’, ‘int4’, ‘int8’, ‘byte’, ‘real’, ‘direction’, ‘cyclic’, ‘complex’

List of values (for compute devices): ‘int1’, ‘int2’, ‘uint2’, ‘int4’, ‘byte’, ‘real’, ‘direction’, ‘cyclic’, ‘complex’
9.3 real_to_complex — Convert two real images into a complex image.

real_to_complex(ImageReal, ImageImaginary : ImageComplex : : )
將兩個圖像(實部和虛部)轉換為一個複數圖像,complex_to_real 的逆運算
9.4 real_to_vector_field — Convert two real-valued images into a vector field image.

real_to_vector_field(Row, Col : VectorField : Type : )
把兩個實值圖像轉換為一個矢量域圖像
9.5 vector_field_to_real — Convert a vector field image into two real-valued images.

vector_field_to_real(VectorField : Row, Col : : )
real_to_vector_field 的逆運算

坚持原创技术分享,您的支持将鼓励我继续创作!