如何用C描述算法 [英] How to describe algorithm in C
问题描述
我正在学习图像处理.我的问题是RGB向量空间中的分割.如何在C编程中描述欧几里德距离(图像处理中的公式6.7-1 chap6-Gonzalez)以分割RGB.谢谢.
I'm learning Image processing. My problem is Segmentation in RGB vector space. How to describe the Euclidean distance(Fomula 6.7-1 chap6 in Image processing- Gonzalez) to segment RGB in C programming. Thanks.
推荐答案
解决此问题的最低要求:
Minimum requirements to solve this problem:
1)学习C(至少达到中等水平)
1) learn C (to at least an medium-advanced level)
假设您不会从头开始解码jpeg或任何图像格式:
presuming that you're not going to decode jpegs or whatever image format you have from scratch:
2)学习如何在C语言中使用库.
2) learn how to use libraries in C.
3)找到一个可以读取和写入手头图像文件格式的库
3) find a library that allows you to read and write the image file format at hand
4)实现该算法并将其应用于图像数据
4) implement the algorithm and apply it to the image data
这篇关于如何用C描述算法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!