Skip to content

Ashish's Commit #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
146 changes: 146 additions & 0 deletions help/en_US/align.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
<?xml version="1.0" encoding="UTF-8"?>

<!--
*
* This help file was generated from align.sci using help_from_sci().
*
-->

<refentry version="5.0-subset Scilab" xml:id="align" xml:lang="en"
xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:ns3="http://www.w3.org/1999/xhtml"
xmlns:mml="http://www.w3.org/1998/Math/MathML"
xmlns:scilab="http://www.scilab.org"
xmlns:db="http://docbook.org/ns/docbook">

<refnamediv>
<refname>align</refname>
<refpurpose>This function aligns the set of input images for HDR image creation.</refpurpose>
</refnamediv>


<refsynopsisdiv>
<title>Calling Sequence</title>
<synopsis>
[out1, out2, out3] = align(maxBits, excludeRange, cut, num, srcImg_1, srcImg_2, srcImg_3)
[out1, out2, out3, out4] = align(maxBits, excludeRange, cut, num, srcImg1, srcImg_2, srcImg_3, srcImg_4)
[out1, out2, out3, out4, out5] = align(maxBits, excludeRange, cut, num, srcImg_1, srcImg_2, srcImg_3, srcImg_4, srcImg_5)

</synopsis>
</refsynopsisdiv>

<refsection>
<title>Parameters</title>
<variablelist>
<varlistentry><term>maxBits :</term>
<listitem><para> Logarithm to the base 2 of maximal shift in each dimension. Values of 5 and 6 are usually good enough (31 and 63 pixels shift respectively). Value should not exceed 6. It is of Double type.</para></listitem></varlistentry>
<varlistentry><term>excludeRange :</term>
<listitem><para> Range for exclusion bitmap that is constructed to suppress noise around the median value. It is of Double type.</para></listitem></varlistentry>
<varlistentry><term>cut :</term>
<listitem><para> If true, cuts images. Otherwise fills the new regions with zeros. It is of Boolean type.</para></listitem></varlistentry>
<varlistentry><term>num :</term>
<listitem><para> Number of images given as input source images(3 - 5). It is of double type.</para></listitem></varlistentry>
<varlistentry><term>srcImg_i :</term>
<listitem><para> Hypermat of image_i.</para></listitem></varlistentry>
</variablelist>
</refsection>

<refsection>
<title>Description</title>
<para>
This function uses AlignMTB algorithm which converts images to median threshold bitmaps (1 for pixels brighter than median luminance and 0 otherwise) and than aligns the resulting bitmaps using bit operations.
</para>
<para>
</para>
</refsection>

<refsection>
<title>Examples</title>
<programlisting role="example"><![CDATA[
a = imread("m1.jpeg");
b = imread("m2.jpeg");
c = imread("m3.jpeg");
num = 3;
maxBits= 6;
excludeRange = 4;
cut = %t;
[x, y, z] = align(maxBits, excludeRange, cut, num, a, b, c);

]]></programlisting>
</refsection>

<refsection>
<title>Examples</title>
<programlisting role="example"><![CDATA[
a = imread("t1.jpeg");
b = imread("t2.jpeg");
c = imread("t3.jpeg");
d = imread("t4.jpeg");
num = 4;
maxBits= 6;
excludeRange = 4;
cut = %f;
[x, y, z, p] = align(maxBits, excludeRange, cut, num, a, b, c, d);

]]></programlisting>
</refsection>

<refsection>
<title>Examples</title>
<programlisting role="example"><![CDATA[
// error cause maxBits value is greater than 6
a = imread("m1.jpeg");
b = imread("m2.jpeg");
c = imread("m3.jpeg");
d = imread("m4.jpeg");
num = 4;
maxBits= 7;
excludeRange = 4;
cut = %t;
[x, y, z, p] = align(maxBits, excludeRange, cut, num, a, b, c, d);

]]></programlisting>
</refsection>

<refsection>
<title>Examples</title>
<programlisting role="example"><![CDATA[
a = imread("m1.jpeg");
b = imread("m2.jpeg");
c = imread("m3.jpeg");
d = imread("m4.jpeg");
e = imread("m5.jpeg");
num = 5;
maxBits= 6;
excludeRange = 4;
cut = %t;
[x, y, z, p, q] = align(maxBits, excludeRange, cut, num, a, b, c, d, e);

]]></programlisting>
</refsection>

<refsection>
<title>Examples</title>
<programlisting role="example"><![CDATA[
// cut is set false here (if true cuts images, otherwise fills the new regions with zeros. )
a = imread("t1.jpeg");
b = imread("t2.jpeg");
c = imread("t3.jpeg");
num = 3;
maxBits= 1;
excludeRange = 4;
cut = %t;
[x, y, z] = align(maxBits, excludeRange, cut, num, a, b, c);

]]></programlisting>
</refsection>

<refsection>
<title>Authors</title>
<simplelist type="vert">
<member>Ashish Manatosh Barik, NIT Rourkela</member>
</simplelist>
</refsection>
</refentry>
111 changes: 111 additions & 0 deletions help/en_US/applyTransformer.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
<?xml version="1.0" encoding="UTF-8"?>

<!--
*
* This help file was generated from applyTransformer.sci using help_from_sci().
*
-->

<refentry version="5.0-subset Scilab" xml:id="applyTransformer" xml:lang="en"
xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:ns3="http://www.w3.org/1999/xhtml"
xmlns:mml="http://www.w3.org/1998/Math/MathML"
xmlns:scilab="http://www.scilab.org"
xmlns:db="http://docbook.org/ns/docbook">

<refnamediv>
<refname>applyTransformer</refname>
<refpurpose>This function is used to apply affine or TPS transformation to image.</refpurpose>
</refnamediv>


<refsynopsisdiv>
<title>Calling Sequence</title>
<synopsis>
[ tImg] = applyTransformer(srcImg1, srcImg2, typeOfMethod, hessianThreshold, rpTPS, sfAffine)

</synopsis>
</refsynopsisdiv>

<refsection>
<title>Parameters</title>
<variablelist>
<varlistentry><term>srcImg1 :</term>
<listitem><para> It is the first input image.</para></listitem></varlistentry>
<varlistentry><term>srcImg2 :</term>
<listitem><para> It is the second input image, which is also the target image.</para></listitem></varlistentry>
<varlistentry><term>typeOfMethod :</term>
<listitem><para> It is used as a flag to pick a certain type of transformation. Use value '1' for 'Affine Transformation' and '2' for 'Thin Plate Spline Shape Transformation'. It is of double type.</para></listitem></varlistentry>
<varlistentry><term>hessianThreshold :</term>
<listitem><para> It is the threshold value for Hessian keypoint detector in SURF(Speeded-Up Robust Features). It is of double type.</para></listitem></varlistentry>
<varlistentry><term>rpTPS :</term>
<listitem><para> It is used to set the regularization parameter for relaxing the exact interpolation requirements of the TPS algorithm. It is of double type.</para></listitem></varlistentry>
<varlistentry><term>sfAffine :</term>
<listitem><para> It is used to set the full-affine condition for Affine Transformation. If true, the function finds as optimal transformation with no additional restrictions(6 degrees of freedom). Otherwise, the class of transformations to choose from is limited to combination of translation, rotation &amp; uniform scaling(5 degrees of freedom).</para></listitem></varlistentry>
<varlistentry><term>tImg :</term>
<listitem><para> The transformed image of the target(srcImg2). It is of hypermat type.</para></listitem></varlistentry>
</variablelist>
</refsection>

<refsection>
<title>Description</title>
<para>
This function is used to perform shape transformation, the user gets to choose and apply the type of transformation she/he wishes to perform.
</para>
<para>
</para>
</refsection>

<refsection>
<title>Examples</title>
<programlisting role="example"><![CDATA[
affine transformation
a = imread("bryan.jpeg");
b = imread("p1.jpg");
typeOfMethod=1
hessianThreshold=5000;
rpTPS=25000;
sfAffine=%f;
img=applyTransformer(a,b,typeOfMethod,hessianThreshold, rpTPS,

]]></programlisting>
</refsection>

<refsection>
<title>Examples</title>
<programlisting role="example"><![CDATA[
a= imread("lena.jpeg");
b= imread("bryan.jpeg");
typeOfMethod=1
hessianThreshold=5000;
rpTPS=2000;
sfAffine=%t;
img=applyTransformer(a,b,typeOfMethod,hessianThreshold, rpTPS,sfAffine);

]]></programlisting>
</refsection>

<refsection>
<title>Examples</title>
<programlisting role="example"><![CDATA[
TPS shape transformation
a = imread("photo.jpg");
b= imread("photo1.jpg");
typeOfMethod=2
hessianThreshold=5000;
rpTPS=800;
sfAffine=%t;
img=applyTransformer(a,b,typeOfMethod,hessianThreshold, rpTPS,sfAffine);

]]></programlisting>
</refsection>

<refsection>
<title>Authors</title>
<simplelist type="vert">
<member>Ashish Manatosh Barik, NIT Rourkela</member>
</simplelist>
</refsection>
</refentry>
70 changes: 70 additions & 0 deletions help/en_US/bwLookUp.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
<?xml version="1.0" encoding="UTF-8"?>

<!--
*
* This help file was generated from bwLookUp.sci using help_from_sci().
*
-->

<refentry version="5.0-subset Scilab" xml:id="bwLookUp" xml:lang="en"
xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:ns3="http://www.w3.org/1999/xhtml"
xmlns:mml="http://www.w3.org/1998/Math/MathML"
xmlns:scilab="http://www.scilab.org"
xmlns:db="http://docbook.org/ns/docbook">

<refnamediv>
<refname>bwLookUp</refname>
<refpurpose>This function performs 2*2 and 3*3 nonlinear filtering using a lookup table.</refpurpose>
</refnamediv>


<refsynopsisdiv>
<title>Calling Sequence</title>
<synopsis>
[out] = bwLookUp(image,lut)

</synopsis>
</refsynopsisdiv>

<refsection>
<title>Parameters</title>
<variablelist>
<varlistentry><term>image :</term>
<listitem><para> The input is a grayscale image. If the image is not binary, it is converted to one.</para></listitem></varlistentry>
<varlistentry><term>lut :</term>
<listitem><para> The lut is a 1*16 double vector [2*2 filtering], or a [1*512] double vector [3*3 filtering].</para></listitem></varlistentry>
<varlistentry><term>out :</term>
<listitem><para> The output image is the same size as image, same data type as lut.</para></listitem></varlistentry>
</variablelist>
</refsection>

<refsection>
<title>Description</title>
<para>
The function performs a 2-by-2 or 3-by-3 nonlinear neighborhood filtering operation on a grayscale image and returns the results in the output image. The neighborhood processing determines an integer index value used to access values in a lookup table 'lut'. The fetched lut value becomes the pixel value in the output image at the targeted position.
</para>
<para>
</para>
</refsection>

<refsection>
<title>Examples</title>
<programlisting role="example"><![CDATA[
// a simple example
a = imread("lena.jpeg", 0);
lut = [ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ];
b = bwLookUp(a,lut);

]]></programlisting>
</refsection>

<refsection>
<title>Authors</title>
<simplelist type="vert">
<member>Samiran Roy</member>
</simplelist>
</refsection>
</refentry>
Loading