set_grayval(Image::Row,Column:Grayval:) 功能: 设置图像的灰度值 参数列表: 第1个参数(in):输入图像 第2个参数(in):被访问像素的行坐标,Row >= 0 && Row < height 第3个参数(in):被访问像素的列坐标,Col >= 0 && Col < width 第4个参数(in):像素值 可能前置: read_image,get_image_pointer1...
set_grayval(Image: :Row,Column,Grayval: ) Description set_grayvalsets the gray values of the input imageImageat the positions (Row,Column) to the values specified byGrayval. IfImageis a multi-channel image, you can either set a single gray value for a pixel and thus set it for all avai...
set_grayval(Image: :Row,Column,Grayval: ) Description set_grayvalsets the gray values of the input imageImageat the positions (Row,Column) to the values specified byGrayval. IfImageis a multi-channel image, you can either set a single gray value for a pixel and thus set it for all avai...
*获得图像灰度 get_grayval (GrayImage, Rows, Columns, Grayval) *循环改变值 for i := 0 to |Grayval|-1 by 1 if (Grayval[i]>100) Grayval[i]:=255 endif endfor *灰度赋值 set_grayval (ImageResult, Rows, Columns, Grayval) *图像取对数 log_image (GrayImage, LogImage, 'e') *图像取指数...
处理:// 对Grayval进行处理,得到resultVal。 设定: set_grayval (灰度图, Rows, Columns, resultVal) // 局部区域设置为处理后的像素值 处理环节的特别说明:tuple_greater_elem非常重要 如都减20,为防止负值,需将负值置为0。 n:=20 newVal:=Grayval-n ...
set_grayval(Image : : Row, Column, Grayval : ) 作用:设置图像像素点的灰度值 依靠上面这些常用算子,我们可以做个渐变的效果 *创建灰度值为0的图像 gen_image_const (Image, 'byte', 100, 100)*计算图像尺寸 get_image_size (Image, Width, Height)*指定图像像素为同一灰度值 ...
set_grayval (灰度图, Rows, Columns, resultVal) // 局部区域设置为处理后的像素值 处理环节的特别说明:tuple_greater_elem⾮常重要 如都减20,为防⽌负值,需将负值置为0。n:=20 newVal:=Grayval-n tuple_gen_const (|Grayval|, 0, Zero) //纯0数组 tuple_greater_elem (newVal, Zero, ...
paint_region(Region,Image:ImageResult:Grayval,Type:) 将Region以一个恒定的灰度值绘制到Image图像中 paint_xld(XLD,Image:ImageResult:Grayval:) 将XLD以一个恒定的灰度值绘制到Image图像中 set_grayval(Image::Row,Column,Grayval:) 设置Image图像中坐标为(Row,Column)的灰度值 1.read_image(Image,'G:/Halco...
set_grayval (VecCol, R, C, DC) endfor endfor derivate_gauss (VecRow, VecRowGauss, Sigma, 'none') derivate_gauss (VecCol, VecColGauss, Sigma, 'none') zoom_image_size (VecRowGauss, VecRowOrig, Width, Height, 'constant') zoom_image_size (VecColGauss, VecColOrig, Width, Height, ...
set_grayval(Image : : Row, Column, Grayval : ) 作用:设置图像像素点的灰度值 Row,Column:像素点的行、列坐标 Grayval:像素点的灰度值 gen_rectangle1( : Rectangle : Row1, Column1, Row2, Column2 : ) 作用:创建一个平行于坐标轴的矩形