來自澳大利亞Qeensland大學的計算機視覺Matlab工具箱。
This Toolbox provides a number of functions that are useful in computer vision,
machine vision and related areas. It is a somewhat eclectic collection reflecting
the author s personal interest in areas of photometry, photogrammetry, colorimetry. It
covers functions such as image file reading and writing, filtering, segmentation,
feature extraction, camera calibration, camera exterior orientation, display,
color space conversion and blackbody radiators. The Toolbox, combined
with MATLAB and a modern workstation computer, is a useful and convenient
environment for investigation of machine vision algorithms. It is possible to use
MEX files to interface with image acquisition hardware ranging from simple
framegrabbers to Datacube servers.
The XML Toolbox converts MATLAB data types (such as double, char, struct, complex, sparse, logical) of any level of nesting to XML format and vice versa.
For example,
>> project.name = MyProject
>> project.id = 1234
>> project.param.a = 3.1415
>> project.param.b = 42
becomes with str=xml_format(project, off )
"<project>
<name>MyProject</name>
<id>1234</id>
<param>
<a>3.1415</a>
<b>42</b>
</param>
</project>"
On the other hand, if an XML string XStr is given, this can be converted easily to a MATLAB data type or structure V with the command V=xml_parse(XStr).
圖的深度遍歷,輸出結果為(紅色為鍵盤輸入的數據,權值都置為1):
輸入頂點數和弧數:8 9
輸入8個頂點.
輸入頂點0:a
輸入頂點1:b
輸入頂點2:c
輸入頂點3:d
輸入頂點4:e
輸入頂點5:f
輸入頂點6:g
輸入頂點7:h
輸入9條弧.
輸入弧0:a b 1
輸入弧1:b d 1
輸入弧2:b e 1
輸入弧3:d h 1
輸入弧4:e h 1
輸入弧5:a c 1
輸入弧6:c f 1
輸入弧7:c g 1
輸入弧8:f g 1
深度優先遍歷: a b d h e c f g
程序結束.