• Welcome to the world's largest Chinese hacker forum

    Welcome to the world's largest Chinese hacker forum, our forum registration is open! You can now register for technical communication with us, this is a free and open to the world of the BBS, we founded the purpose for the study of network security, please don't release business of black/grey, or on the BBS posts, to seek help hacker if violations, we will permanently frozen your IP and account, thank you for your cooperation. Hacker attack and defense cracking or network Security

    business please click here: Creation Security  From CNHACKTEAM

Recommended Posts

j1prtunqjkk3586.png

qmkrg3vdcw13587.png

实例目的:提取最上面黄色的线

在HDevelop中

开发_关闭_窗口()

read_image (Image,' D:/bb/tu/8.png ')

获取图像大小(图像,宽度,高度)

分解3(图像,红色、绿色、蓝色)

*将RGB三通道数据转化为hsv色彩模型色彩模型色彩空间的三通道图像数据

*单纯疱疹病毒:看https://blog.csdn.net/xiaoyafang123/article/details/113029596

转换自rgb(红色、绿色、蓝色、色调、饱和度、强度,“单纯疱疹病毒”)

对hsv色彩模型色彩模型图像中的饱和度通道进行阈值操作

阈值(饱和度,高饱和度,200,255)

*获取上述阈值操作后区域中的色调通道图像数据

reduce_domain(色调、高饱和度、色调高饱和度)

*对上述色调通道图像数据进行阈值处理

阈值(高饱和度,黄色,20,30)

*寻找连通域

连接(黄色,连接区域)

*保留连通区域里的最大的区域

select _ shape _ STD(连接区域,选定区域,' max_area ',0)

*对选定区域进行闭运算操作

关闭_圆圈(选定区域,黄色,3.5)

*将黄色区域里的图像剪切出来

reduce_domain(图像,黄色,图像缩小)

dev_open_window(10,10宽度,高度,'黑色WindowHandle)

开发_显示(图像缩小)

jk45bfqlayh3588.png

在夸脱创建者中

HObject ho _ Image,ho_Red,ho_Green,ho _ Blue

HObject ho _ Hue,ho_Saturation,ho_Intensity,ho _ HighSaturation

HObject ho _高饱和度,ho _黄色,ho _连通区域

HObject ho _ SelectedRegions,ho _ ImageReduced

hv_Width,hv_Height,hv _ WindowHandle

ReadImage(ho_Image,' d :/bb/tu/8。png’);

GetImageSize(ho_Image,hv_Width,HV _ Height);

分解者3(ho_Image,ho_Red,ho_Green,ho _ Blue);

//将RGB三通道数据转化为hsv色彩模型色彩模型色彩空间的三通道图像数据

//HSV:看https://blog.csdn.net/xiaoyafang123/article/details/113029596

转换RGB(ho _红,嗬_绿,嗬_蓝,嗬_色相,嗬_饱和度,嗬_强度,

HSV’);

//对hsv色彩模型色彩模型图像中的饱和度通道进行阈值操作

阈值(ho _饱和度,ho _高饱和度,200,255);

//获取上述阈值操作后区域中的色调通道图像数据

ReduceDomain(ho_Hue,ho_HighSaturation,ho _ Hue high saturation);

//对上述色调通道图像数据进行阈值处理

Threshold(ho_HueHighSaturation,ho_Yellow,20,30);

//寻找连通域

连接(ho _黄色,ho _连通区域);

//保留连通区域里的最大的区域

SelectShapeStd(ho _ connected regions,ho_SelectedRegions,' max_area ',0);

//对选定区域进行闭运算操作

闭合圆(ho _选定区域,ho _黄色,3.5);

//将黄色区域里的图像剪切出来

ReduceDomain(ho_Image,ho_Yellow,ho _ Image reduced);

SetWindowAttr(' background _ color ',' black ');

OpenWindow(10,10,hv_Width,hv_Height,0,' visible ','',HV _ window句柄);

hdevwindowstack :推送(HV _ window句柄);

if(hdevwindowstack :3360 iso pen())

DispObj(ho_ImageReduced,hdevwindowstack :3360 get active());

cftuknbme3q3589.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now