﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?application progid="SMath Solver" version="1.3.0.9126"?>
<worksheet xmlns="http://smath.info/schemas/worksheet/1.0">
  <settings ppi="96">
    <identity>
      <id>b49a9302-14af-4017-a65d-0142640dbd8c</id>
      <revision>382</revision>
    </identity>
    <calculation>
      <precision>4</precision>
      <exponentialThreshold>5</exponentialThreshold>
      <trailingZeros>false</trailingZeros>
      <significantDigitsMode>false</significantDigitsMode>
      <mixedNumbers>false</mixedNumbers>
      <roundingMode>0</roundingMode>
      <approximateEqualAccuracy>0</approximateEqualAccuracy>
      <fractions>decimal</fractions>
    </calculation>
    <pageModel active="true" viewMode="0" printGrid="false" printAreas="true" simpleEqualsOnly="false" printBackgroundImages="true" hideElementsHighlightings="false">
      <paper id="9" orientation="Portrait" width="827" height="1169" />
      <margins left="39" right="39" top="39" bottom="39" />
      <footer alignment="Center" color="#a9a9a9">&amp;[PAGENUM] / &amp;[COUNT]</footer>
      <backgrounds />
    </pageModel>
    <dependencies>
      <assembly name="SMath Core" version="1.73.9126.0" guid="a37cba83-b69c-4c71-9992-55ff666763bd" />
      <assembly name="MathRegion" version="1.73.9126.0" guid="02f1ab51-215b-466e-a74d-5d8b1cf85e8d" />
      <assembly name="PictureRegion" version="1.73.9126.0" guid="06b5df04-393e-4be7-9107-305196fcb861" />
      <assembly name="SpecialFunctions" version="1.73.9126.0" guid="2814e667-4e12-48b1-8d51-194e480eabc5" />
      <assembly name="TextRegion" version="1.73.9126.0" guid="485d28c5-349a-48b6-93be-12a35a1c1e39" />
      <assembly name="PlotRegion" version="1.73.9126.0" guid="c451c2b5-798b-4f08-b9ec-b90963d1ddaa" />
    </dependencies>
  </settings>
  <regions type="content">
    <region left="18" top="18" width="348" height="27" color="#800000" fontSize="12" isBreakable="false">
      <text lang="eng" fontFamily="Consolas" fontSize="10">
        <content>
          <p style="font-family: Consolas; font-size: 12px; color: #800000; font-weight: bold;">Freeman Chain Code of Eight Directions</p>
        </content>
      </text>
    </region>
    <region left="18" top="63" width="95" height="24" color="#000000" fontSize="10">
      <text lang="eng" fontFamily="Consolas" fontSize="10">
        <content>
          <p>Reference: </p>
        </content>
      </text>
    </region>
    <region left="18" top="90" width="600" height="24" color="#000000" fontSize="10">
      <text lang="eng" fontFamily="Consolas" fontSize="10">
        <content>
          <p>https://www.sci.utah.edu/~gerig/CS7960-S2010/handouts/Kuhl-Giardina-CGIP1982.pdf</p>
        </content>
      </text>
    </region>
    <region left="18" top="135" width="569" height="280" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">C#</e>
          <e type="function" args="1">pChainCode</e>
          <e type="operand">x</e>
          <e type="operand">0</e>
          <e type="operator" args="2">:</e>
          <e type="operand">y</e>
          <e type="operand">0</e>
          <e type="operator" args="2">:</e>
          <e type="operand">p</e>
          <e type="operand">0</e>
          <e type="operand">0</e>
          <e type="operand">1</e>
          <e type="operand">2</e>
          <e type="function" args="4">mat</e>
          <e type="operator" args="2">:</e>
          <e type="operand">C</e>
          <e type="operand">0</e>
          <e type="operand">1</e>
          <e type="function" args="2">matrix</e>
          <e type="operator" args="2">:</e>
          <e type="operand">lbl</e>
          <e type="operand" style="string">01234567</e>
          <e type="operator" args="2">:</e>
          <e type="operand">1</e>
          <e type="operand">5</e>
          <e type="function" args="7">mat</e>
          <e type="operand">C#</e>
          <e type="function" args="1">IsString</e>
          <e type="operand">k</e>
          <e type="operand">1</e>
          <e type="operand">C#</e>
          <e type="function" args="1">strlen</e>
          <e type="function" args="2">range</e>
          <e type="operand">lbl</e>
          <e type="operand">C#</e>
          <e type="operand">k</e>
          <e type="operand">1</e>
          <e type="function" args="3">substr</e>
          <e type="function" args="2">findstr</e>
          <e type="operand">1</e>
          <e type="operator" args="1">-</e>
          <e type="operator" args="2">≠</e>
          <e type="operand">C</e>
          <e type="operand">C</e>
          <e type="operand">C#</e>
          <e type="operand">k</e>
          <e type="operand">1</e>
          <e type="function" args="3">substr</e>
          <e type="function" args="1">str2num</e>
          <e type="function" args="2">stack</e>
          <e type="function" args="1">eval</e>
          <e type="operator" args="2">:</e>
          <e type="function" args="2">if</e>
          <e type="function" args="3">for</e>
          <e type="operand">C</e>
          <e type="operand">C#</e>
          <e type="operator" args="2">:</e>
          <e type="function" args="3">if</e>
          <e type="operand">k</e>
          <e type="operand">1</e>
          <e type="operand">C</e>
          <e type="function" args="1">length</e>
          <e type="function" args="2">range</e>
          <e type="operand">x</e>
          <e type="operand">x</e>
          <e type="operand">6</e>
          <e type="operand">C</e>
          <e type="operand">k</e>
          <e type="function" args="2">el</e>
          <e type="operator" args="2">-</e>
          <e type="function" args="1">sign</e>
          <e type="operand">2</e>
          <e type="operand">C</e>
          <e type="operand">k</e>
          <e type="function" args="2">el</e>
          <e type="operator" args="2">-</e>
          <e type="function" args="1">sign</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">+</e>
          <e type="function" args="1">eval</e>
          <e type="operator" args="2">:</e>
          <e type="operand">y</e>
          <e type="operand">y</e>
          <e type="operand">4</e>
          <e type="operand">C</e>
          <e type="operand">k</e>
          <e type="function" args="2">el</e>
          <e type="operator" args="2">-</e>
          <e type="function" args="1">sign</e>
          <e type="operand">C</e>
          <e type="operand">k</e>
          <e type="function" args="2">el</e>
          <e type="function" args="1">sign</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">+</e>
          <e type="function" args="1">eval</e>
          <e type="operator" args="2">:</e>
          <e type="operand">p</e>
          <e type="operand">p</e>
          <e type="operand">x</e>
          <e type="operand">y</e>
          <e type="operand">1</e>
          <e type="operand">2</e>
          <e type="function" args="4">mat</e>
          <e type="function" args="2">stack</e>
          <e type="function" args="1">eval</e>
          <e type="operator" args="2">:</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="function" args="5">line</e>
          <e type="function" args="3">for</e>
          <e type="operand">p</e>
          <e type="operand">4</e>
          <e type="operand">1</e>
          <e type="function" args="6">line</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="18" top="432" width="861" height="26" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">Chain3</e>
          <e type="operand">5</e>
          <e type="operand">4</e>
          <e type="operand">1</e>
          <e type="operand">2</e>
          <e type="operand">3</e>
          <e type="operand">4</e>
          <e type="operand">3</e>
          <e type="operand">0</e>
          <e type="operand">0</e>
          <e type="operand">1</e>
          <e type="operand">0</e>
          <e type="operand">1</e>
          <e type="operand">0</e>
          <e type="operand">0</e>
          <e type="operand">0</e>
          <e type="operand">7</e>
          <e type="operand">7</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="operand">0</e>
          <e type="operand">7</e>
          <e type="operand">5</e>
          <e type="operand">4</e>
          <e type="operand">5</e>
          <e type="operand">4</e>
          <e type="operand">5</e>
          <e type="operand">0</e>
          <e type="operand">6</e>
          <e type="operand">5</e>
          <e type="operand">4</e>
          <e type="operand">1</e>
          <e type="operand">3</e>
          <e type="operand">4</e>
          <e type="operand">4</e>
          <e type="operand">4</e>
          <e type="operand">4</e>
          <e type="operand">6</e>
          <e type="function" args="37">stack</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="18" top="459" width="781" height="26" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">Chain5</e>
          <e type="operand">0</e>
          <e type="operand">0</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="operand">0</e>
          <e type="operand">7</e>
          <e type="operand">0</e>
          <e type="operand">4</e>
          <e type="operand">5</e>
          <e type="operand">4</e>
          <e type="operand">7</e>
          <e type="operand">6</e>
          <e type="operand">4</e>
          <e type="operand">4</e>
          <e type="operand">5</e>
          <e type="operand">7</e>
          <e type="operand">1</e>
          <e type="operand">5</e>
          <e type="operand">3</e>
          <e type="operand">4</e>
          <e type="operand">5</e>
          <e type="operand">0</e>
          <e type="operand">4</e>
          <e type="operand">1</e>
          <e type="operand">3</e>
          <e type="operand">3</e>
          <e type="operand">1</e>
          <e type="operand">4</e>
          <e type="operand">2</e>
          <e type="operand">0</e>
          <e type="operand">6</e>
          <e type="operand">0</e>
          <e type="operand">0</e>
          <e type="function" args="33">stack</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="18" top="486" width="128" height="24" color="#000000" fontSize="10">
      <math>
        <description active="true" position="Top" lang="eng">
          <content>
            <p>23334467665444332677000122325454332215667701014443221104556670003211077334556710007762334445007776</p>
          </content>
        </description>
        <input>
          <e type="operand">Chain6</e>
          <e type="operand">Chain6</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="18" top="540" width="240" height="158" color="#000000" fontSize="8">
      <plot axes="false" type="2d" render="lines" scale_x="1" scale_y="1" scale_z="1" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="-16" transpose_y="-15" transpose_z="0">
        <input>
          <e type="operand">Chain3</e>
          <e type="function" args="1">pChainCode</e>
        </input>
      </plot>
    </region>
    <region left="261" top="540" width="240" height="158" color="#000000" fontSize="8">
      <plot axes="false" type="2d" render="lines" scale_x="1" scale_y="1" scale_z="1" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="2" transpose_y="6" transpose_z="0">
        <input>
          <e type="operand">Chain5</e>
          <e type="function" args="1">pChainCode</e>
        </input>
      </plot>
    </region>
    <region left="504" top="540" width="240" height="158" color="#000000" fontSize="8">
      <plot axes="false" type="2d" render="lines" scale_x="1" scale_y="1" scale_z="1" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="44" transpose_y="-30" transpose_z="0">
        <input>
          <e type="operand">Chain6</e>
          <e type="function" args="1">description</e>
          <e type="function" args="1">pChainCode</e>
        </input>
      </plot>
    </region>
    <region left="441" top="558" width="107" height="107" color="#000000">
      <picture>
        <raw format="png" encoding="base64">iVBORw0KGgoAAAANSUhEUgAAAKIAAACiCAYAAADC8hYbAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAA1mSURBVHhe7ZyBmdO6EoVpgRZogRZogRZogRZogRZogRZogRZoYV9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0pwMQV41J0OwuLOSjpj0Ije0kyHI0pwMQTpiMgS5RkyGIEtzMgRZmpMhWNziSyEmvcjSnAxBXqwkQ5BrxGQIsjQnQ4AJLoTIG4ry557vHTnKfGv33aPv9QzOZwq+Ajn/YGK+rL6E/qB8JfR7PFeGqG3UeK98VbsRQ31F/ykn/ax/J2y+Ctvneq/8nWfee+XVntMr8e3bt7f/AeTRcdJ2hVYuAAAAAElFTkSuQmCC</raw>
      </picture>
    </region>
    <region left="9" top="747" width="60" height="24" color="#000000" fontSize="10">
      <math optimize="2">
        <input>
          <e type="operand">Alvaro</e>
        </input>
      </math>
    </region>
    <region left="144" top="747" width="233" height="26" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">4</e>
          <e type="function" args="1">appVersion</e>
        </input>
        <result action="numeric">
          <e type="operand" style="string">1.73.9126.0</e>
        </result>
      </math>
    </region>
  </regions>
</worksheet>