Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
nisaldilshan committed Mar 20, 2017
2 parents d451efe + 134ca73 commit 8826231
Show file tree
Hide file tree
Showing 10 changed files with 613 additions and 43 deletions.
13 changes: 1 addition & 12 deletions Image Processing Studio 1.0/ColorAdjustment.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

63 changes: 42 additions & 21 deletions Image Processing Studio 1.0/Form1.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 17 additions & 3 deletions Image Processing Studio 1.0/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public partial class Form1 : Form
ColorAdjustment ColorControl;
Vignette vignette;
ColorTemperatureControl colorTempControl;
HightlightShadows HighlightShadowsControl;
Exposure ExposureControl;
Contrast ContrastControl;

Expand Down Expand Up @@ -68,7 +69,12 @@ public Form1()
colorTempControl = new ColorTemperatureControl();
colorTempControl.Dock = DockStyle.Top;
colorTempControl.ApplyClicked += onProcessingApplyClicked;


HighlightShadowsControl = new HightlightShadows();
HighlightShadowsControl.Dock = DockStyle.Top;
HighlightShadowsControl.ApplyClicked += onProcessingApplyClicked;


ExposureControl = new Exposure();
ExposureControl.Dock = DockStyle.Top;
ExposureControl.button1_Clicked += onProcessingApplyClicked;
Expand Down Expand Up @@ -239,6 +245,7 @@ private void uiUpdate()
btnSave.Enabled = false;
btnVignette.Enabled = false;
btnColorTemp.Enabled = false;
btnCorrection.Enabled = false;
btnExposure.Enabled = false;
btnContrast.Enabled = false;
}
Expand All @@ -265,6 +272,7 @@ private void uiUpdate()
btnSave.Enabled = true;
btnVignette.Enabled = true;
btnColorTemp.Enabled = true;
btnCorrection.Enabled = true;
btnExposure.Enabled = true;
btnContrast.Enabled = true;
if (imgList[curIndex].History.Count > 0)
Expand Down Expand Up @@ -337,7 +345,7 @@ private void HistogramUpdate(Image<Bgr, Byte> img_ref)
double gray_max = m_gray.Max();

double[] m_red = new double[256];
Hist.Calculate(new Image<Gray, byte>[] { img_ref[0] }, false, null);
Hist.Calculate(new Image<Gray, byte>[] { img_ref[2] }, false, null);
Hist.CopyTo(m_red);
double red_max = m_red.Max();

Expand All @@ -347,7 +355,7 @@ private void HistogramUpdate(Image<Bgr, Byte> img_ref)
double green_max = m_green.Max();

double[] m_blue = new double[256];
Hist.Calculate(new Image<Gray, byte>[] { img_ref[2] }, false, null);
Hist.Calculate(new Image<Gray, byte>[] { img_ref[0] }, false, null);
Hist.CopyTo(m_blue);
double blue_max = m_blue.Max();

Expand Down Expand Up @@ -461,6 +469,12 @@ private void btnSave_Click(object sender, EventArgs e)
}
}
}

private void btnCorrection_Click(object sender, EventArgs e)
{
operationTab.Panel2.Controls.Clear();
operationTab.Panel2.Controls.Add(HighlightShadowsControl);
}

private void button1_Click(object sender, EventArgs e)
{
Expand Down
33 changes: 33 additions & 0 deletions Image Processing Studio 1.0/Form1.resx
Original file line number Diff line number Diff line change
Expand Up @@ -861,6 +861,39 @@
RUyaPkY/6o4W7IH9BTuz3ywPHINPxiG+NKzfH5VPLBRAQx45sKfwWlT9AElCeaa7o51EfihF0tOumfQJ
8Y7xQamktWGOKp8XDXnkQB8Qxq5QxOHRNlprlfVDVmngnOVo46JXlLVzdGO9QgX4fkLHyQdE81pa/gbh
sa9bsH6y1QAAAABJRU5ErkJggg==
</value>
</data>
<data name="btnCorrection.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAABGdBTUEAALGPC/xhBQAAAAd0SU1FB+ED
EwIaGloLN+kAAAZnSURBVEhLpZZlbFVLFIUHdwm0ARosuLUEa4O7u0MJxbW4BAgJriUEDRokuAS34hQN
DsHhB06CBCc46/XbcJqm7/JoH5PszD3nzpk1W9ba4/r06aNZs2Zp7969OnbsmK5evarnz5/r3bt3Nt+9
e1ePHz/WuXPntHz5ckVERGjs2LGaN2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ex4
8RRQQnzgwAGjJSp46tQpuc6dOytRokQxwEmTJrXQBwUFmdehoaFW9SgYer1x40bbhCZC+B49emSFg2dE
gZlncnrz5k2dOXPGqpkiJmXs8+DBA7kuXbooSZIkMcCe1xRZcHCw6tevrw4dOghppdAAh16EjZxxABQN
EA5C5fJMaKOioiyfdDxAx40bJ5oSWm9NAiAAPc8JfebMmWPks1GjRurYsaMGDRok2iiis2zZMvMCDd+3
b5/RjabATG/nPamBETNnzjRQWAIe4XeTJ082AA/Q8zpZsmTKkiWLihQpYmpDV6Fb0V/pXnzHARYtWmQF
s2rVKuM7LZVnpBhAojRixAj7DooSOfq527Jli+kyYHFDnjx5css3ala2bFnVqVNHrVq1Eunh5PRa2iiN
hmYCNZl55vZBWGmv1BEiRaNAhjmYg1csBjR2kcUGh2I0D4QGVSPvHIDcd+/e3TobAByGmWc0gD5M76XF
VqxY0fSB/7gKOe5MhAj6ABQ73J5R6Wh5jhw5zHs2YKOaNWua0EA7wsjNgrlJkyZ2OFhBmlhPOpmLFy+u
TJkyyV2+fNnUBH5lzJjRgHx5jqFsfIS65c+f34QGwaezkQoOzwwbeF+sWDFbFxAQoNSpU/8E9PYjL6gX
QgJ3efk7YIz/CD8t1M/PT9myZbNI5MqVS7lz57aZZ97zP+v4jqZDemrVqmW9P/qdb4D4GIegNmAA0fCM
Z9LjreMyEXc4cupZ7E3/1jgUdbFkyRIDQkLpatxIsOg1vj/8vwYgTuAxnEU6uXfHHdFrfW/wtwY4IU+T
Jo3dOhAdmoXXy6PX+P4wruGJL4udKox3v/secDpWgoATailTpjTaeWpFh+IC4Y3oNb4/xPCADbiLedTJ
mTOn9WvvYg53a9eubZKIKtH2uDQcP37crkm+LwvSPytGVbhS7IXhAAAAAElFTkSuQmCC
</value>
</data>
<data name="btnExposure.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
Expand Down
2 changes: 1 addition & 1 deletion Image Processing Studio 1.0/Form2.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8826231

Please sign in to comment.