measure_projectionT_measure_projectionMeasureProjectionMeasureProjectionmeasure_projection (算子名称)

名称

measure_projectionT_measure_projectionMeasureProjectionMeasureProjectionmeasure_projection — Extract a gray value profile perpendicular to a rectangle or annular arc.

参数签名

measure_projection(Image : : MeasureHandle : GrayValues)

Herror T_measure_projection(const Hobject Image, const Htuple MeasureHandle, Htuple* GrayValues)

void MeasureProjection(const HObject& Image, const HTuple& MeasureHandle, HTuple* GrayValues)

HTuple HMeasure::MeasureProjection(const HImage& Image) const

HTuple HImage::MeasureProjection(const HMeasure& MeasureHandle) const

static void HOperatorSet.MeasureProjection(HObject image, HTuple measureHandle, out HTuple grayValues)

HTuple HMeasure.MeasureProjection(HImage image)

HTuple HImage.MeasureProjection(HMeasure measureHandle)

def measure_projection(image: HObject, measure_handle: HHandle) -> Sequence[float]

描述

measure_projectionmeasure_projectionMeasureProjectionMeasureProjectionMeasureProjectionmeasure_projection extracts a one-dimensional gray value profile perpendicular to a rectangle or annular arc. This is done by averaging the gray values in “slices” perpendicular to the major axis of the rectangle or arc. The sampling is done at subpixel positions in the image ImageImageImageImageimageimage at integer row and column distances (in the coordinate frame of the rectangle) from the center of the rectangle. Since this involves some calculations which can be used repeatedly in several projections, 该算子 gen_measure_rectangle2gen_measure_rectangle2GenMeasureRectangle2GenMeasureRectangle2GenMeasureRectangle2gen_measure_rectangle2 is used to perform these calculations only once, thus increasing the speed of measure_projectionmeasure_projectionMeasureProjectionMeasureProjectionMeasureProjectionmeasure_projection significantly. Since there is a trade-off between accuracy and speed in the subpixel calculations of the gray values, different interpolation schemes can be selected in gen_measure_rectangle2gen_measure_rectangle2GenMeasureRectangle2GenMeasureRectangle2GenMeasureRectangle2gen_measure_rectangle2 (the interpolation only influences rectangles not aligned with the image axes). The measure object generated with gen_measure_rectangle2gen_measure_rectangle2GenMeasureRectangle2GenMeasureRectangle2GenMeasureRectangle2gen_measure_rectangle2 is passed in MeasureHandleMeasureHandleMeasureHandleMeasureHandlemeasureHandlemeasure_handle.

For an explanation of the concept of 1D 测量 see the introduction of chapter 1D 测量.

注意

It should be kept in mind that measure_projectionmeasure_projectionMeasureProjectionMeasureProjectionMeasureProjectionmeasure_projection ignores the domain of ImageImageImageImageimageimage for efficiency reasons. If certain regions in the image should be excluded from the measurement a new measure object with appropriately modified parameters should be generated.

运行信息

参数表

ImageImageImageImageimageimage (input_object)  singlechannelimage objectHImageHObjectHImageHobject (byte / uint2 / real)

Input image.

MeasureHandleMeasureHandleMeasureHandleMeasureHandlemeasureHandlemeasure_handle (input_control)  measure HMeasure, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Measure object handle.

GrayValuesGrayValuesGrayValuesGrayValuesgrayValuesgray_values (output_control)  number-array HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)

Gray value profile.

结果

If the parameter values are correct 该算子 measure_projectionmeasure_projectionMeasureProjectionMeasureProjectionMeasureProjectionmeasure_projection 返回值 2 ( H_MSG_TRUE) . Otherwise an exception is raised.

可能的前置算子

gen_measure_rectangle2gen_measure_rectangle2GenMeasureRectangle2GenMeasureRectangle2GenMeasureRectangle2gen_measure_rectangle2

可能的后置算子

close_measureclose_measureCloseMeasureCloseMeasureCloseMeasureclose_measure

可替代算子

gray_projectionsgray_projectionsGrayProjectionsGrayProjectionsGrayProjectionsgray_projections

模块

1D Metrology