Link to home
Start Free TrialLog in
Avatar of datopdogg7
datopdogg7

asked on

Function for GUI in MSVC++

Hi Experts,
I wish to include a simple image conversion algorithm into my GUI code.
I will spare evreyone by not posting the code, as it is quite long, but if it is needed I will post.

Basically I am unsure how to create the function. For instance, in the code snippet below, this is the function that is called when a button is clicked and gets the RGB values from a color box.

I want the LAB values of these RGB values and I want to convert them right there when the button is clicked, so basically I will need a function to do that conversion, as there are several buttons like this one, and copying and pasting the code in each button click would be very unprofessional.

The link to the conversion code is here:  http://www.easyrgb.com/index.php?X=MATH&H=07#text7

If someone could write the code to call this function that would be great... something like
void LAB_Conversion(R_value, G_value, B_value)
{
//code from website
}

Thanks alot,

Dennis
private: System::Void Brown_Click(System::Object^  sender, System::EventArgs^  e) {
 
				MessageBox::Show( "Select the lower bound color. \nClick define custom color on subsequent screen for color spectrum", "Define Lower Bound",
				MessageBoxButtons::OK, MessageBoxIcon::Exclamation );
 
				 // Display color spectrum
 
				 this->colorDialog1->ShowDialog();
 
 				// Write the lower bound red color value to the screen
 
				this->Brown_L_box_LB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.R)->ToString(nullptr);
 
				 // Write the lower bound green color value to the screen
 
				this->Brown_A_box_LB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.G)->ToString(nullptr);
 
				 // Write the lower bound blue color value to the screen
 
				 this->Brown_B_box_LB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.B)->ToString(nullptr);
 
				 MessageBox::Show( "Select the upper bound color. \nClick define custom color on subsequent screen for color spectrum", "Define Upper Bound",
				 MessageBoxButtons::OK, MessageBoxIcon::Exclamation );
 
 				 // Display color spectrum
 
				 this->colorDialog1->ShowDialog();
 
  				// Write the upper bound red color value to the screen
 
				this->Brown_L_box_UB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.R)->ToString(nullptr);
 
				 // Write the upper bound green color value to the screen
 
				this->Brown_A_box_UB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.G)->ToString(nullptr);
 
				 // Write the upper bound blue color value to the screen
 
				 this->Brown_B_box_UB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.B)->ToString(nullptr);
 
 
			 }

Open in new window

Avatar of ikework
ikework
Flag of Germany image

there is no RGB -> LAB on that web-page, or do i miss something?
Avatar of datopdogg7
datopdogg7

ASKER

RGB->XYZ
XYZ->LAB
this is the first one, you could try the second .. ;)
#include <cmath>
#include <cstdio>
 
struct RGB { unsigned char r, g, b; };
struct XYZ { float x, y, z; };
 
XYZ RGB_2_XYZ(const RGB &rgb)
{
    float var_R = (float)rgb.r / 255.0f;        //R from 0 to 255
    float var_G = (float)rgb.g / 255.0f;        //G from 0 to 255
    float var_B = (float)rgb.b / 255.0f;        //B from 0 to 255
 
    if ( var_R > 0.04045 ) 
    {
        var_R = powf( (var_R + 0.055f) / 1.055f, 2.4f);
    }
    else                   
    {
        var_R = var_R / 12.92f;
    }
    if ( var_G > 0.04045 ) 
    {
        var_G = powf( (var_G + 0.055f) / 1.055f, 2.4f);;
    }
    else                   
    {
        var_G = var_G / 12.92f;
    }
    if ( var_B > 0.04045 ) 
    {
        var_B = powf( (var_B + 0.055f) / 1.055f, 2.4f);
    }
    else                   
    {
        var_B = var_B / 12.92f;
    }
 
    var_R = var_R * 100.0f;
    var_G = var_G * 100.0f;
    var_B = var_B * 100.0f;
 
    XYZ ret;
    //Observer. = 2°, Illuminant = D65
    ret.x = var_R * 0.4124f + var_G * 0.3576f + var_B * 0.1805f;
    ret.y = var_R * 0.2126f + var_G * 0.7152f + var_B * 0.0722f;
    ret.z = var_R * 0.0193f + var_G * 0.1192f + var_B * 0.9505f;
 
    printf("[x y z]: [%f %f %f]\n", ret.x, ret.y, ret.z);
    return ret;
}

Open in new window

Thanks, but I tried embedding it in my code and it doesn't work. Is this because it is the GUI code? Here is the full code.
#pragma once
 
#include <iostream>
#include <string>
#include <cmath>
#include <cstdio>
 
 
namespace DigitalImage {
 
	using namespace System;
	using namespace System::ComponentModel;
	using namespace System::Collections;
	using namespace System::Windows::Forms;
	using namespace System::Data;
	using namespace System::Drawing;
	using namespace System::Xml;
	using namespace std;
 
	public ref class Form1 : public System::Windows::Forms::Form
	{
	public:
		Form1(void)
		{
			InitializeComponent();
			//
			//TODO: Add the constructor code here
			//
		}
 
	protected:
		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		~Form1()
		{
			if (components)
			{
				delete components;
			}
		}
 
		// Initialization of Tabs
 
	private: System::Windows::Forms::TabPage^  Define_Parameters_Tab;
	private: System::Windows::Forms::TabPage^  Input_Text_Tab;
	private: System::Windows::Forms::TabPage^  Image_Display_Tab;
	private: System::Windows::Forms::TabPage^  Color_Space_Tab;
	private: System::Windows::Forms::TabPage^  Name_Setting_Tab;
	private: System::Windows::Forms::TabPage^  Geo_Attribute_Setting_Tab;
	private: System::Windows::Forms::TabControl^  Tab_Controller;
 
 
		// Intialization of text boxes
 
	private: System::Windows::Forms::TextBox^  Red_A_box_LB;
	private: System::Windows::Forms::TextBox^  Red_L_box_LB;
	private: System::Windows::Forms::TextBox^  Red_B_box_LB;
	private: System::Windows::Forms::TextBox^  Green_A_box_LB;
	private: System::Windows::Forms::TextBox^  Green_L_box_LB;
	private: System::Windows::Forms::TextBox^  Green_B_box_LB;
	private: System::Windows::Forms::TextBox^  Blue_B_box_LB;
	private: System::Windows::Forms::TextBox^  Blue_A_box_LB;
	private: System::Windows::Forms::TextBox^  Blue_L_box_LB;
	private: System::Windows::Forms::TextBox^  Yellow_B_box_LB;
	private: System::Windows::Forms::TextBox^  Yellow_A_box_LB;
	private: System::Windows::Forms::TextBox^  Yellow_L_box_LB;
 	private: System::Windows::Forms::TextBox^  Cyan_B_box_LB;
	private: System::Windows::Forms::TextBox^  Cyan_A_box_LB;
	private: System::Windows::Forms::TextBox^  Cyan_L_box_LB;
 	private: System::Windows::Forms::TextBox^  Orange_B_box_LB;
	private: System::Windows::Forms::TextBox^  Orange_A_box_LB;
	private: System::Windows::Forms::TextBox^  Orange_L_box_LB;
	private: System::Windows::Forms::TextBox^  Brown_B_box_LB;
	private: System::Windows::Forms::TextBox^  Brown_A_box_LB;
	private: System::Windows::Forms::TextBox^  Brown_L_box_LB;
	private: System::Windows::Forms::TextBox^  Black_A_box_LB;
	private: System::Windows::Forms::TextBox^  Black_L_box_LB;
	private: System::Windows::Forms::TextBox^  Black_B_box_LB;
	private: System::Windows::Forms::TextBox^  White_A_box_LB;
	private: System::Windows::Forms::TextBox^  White_L_box_LB;
	private: System::Windows::Forms::TextBox^  White_B_box_LB;
	private: System::Windows::Forms::TextBox^  Pink_A_box_LB;
	private: System::Windows::Forms::TextBox^  Pink_L_box_LB;
	private: System::Windows::Forms::TextBox^  Pink_B_box_LB;
	private: System::Windows::Forms::TextBox^  Purple_A_box_LB;
	private: System::Windows::Forms::TextBox^  Purple_L_box_LB;
	private: System::Windows::Forms::TextBox^  Purple_B_box_LB;
	private: System::Windows::Forms::TextBox^  Red_A_box_UB;
	private: System::Windows::Forms::TextBox^  Red_L_box_UB;
	private: System::Windows::Forms::TextBox^  Red_B_box_UB;
	private: System::Windows::Forms::TextBox^  Yellow_B_box_UB;
	private: System::Windows::Forms::TextBox^  Yellow_A_box_UB;
	private: System::Windows::Forms::TextBox^  Yellow_L_box_UB;
	private: System::Windows::Forms::TextBox^  Brown_B_box_UB;
	private: System::Windows::Forms::TextBox^  Brown_A_box_UB;
	private: System::Windows::Forms::TextBox^  Brown_L_box_UB;
	private: System::Windows::Forms::TextBox^  Orange_B_box_UB;
	private: System::Windows::Forms::TextBox^  Orange_A_box_UB;
	private: System::Windows::Forms::TextBox^  Orange_L_box_UB;
	private: System::Windows::Forms::TextBox^  Cyan_B_box_UB;
	private: System::Windows::Forms::TextBox^  Cyan_A_box_UB;
	private: System::Windows::Forms::TextBox^  Cyan_L_box_UB;
	private: System::Windows::Forms::TextBox^  Blue_B_box_UB;
	private: System::Windows::Forms::TextBox^  Blue_A_box_UB;
	private: System::Windows::Forms::TextBox^  Blue_L_box_UB;
	private: System::Windows::Forms::TextBox^  Green_B_box_UB;
	private: System::Windows::Forms::TextBox^  Green_A_box_UB;
	private: System::Windows::Forms::TextBox^  Green_L_box_UB;
	private: System::Windows::Forms::TextBox^  Black_A_box_UB;
	private: System::Windows::Forms::TextBox^  Black_L_box_UB;
	private: System::Windows::Forms::TextBox^  Black_B_box_UB;
	private: System::Windows::Forms::TextBox^  White_A_box_UB;
	private: System::Windows::Forms::TextBox^  White_L_box_UB;
	private: System::Windows::Forms::TextBox^  White_B_box_UB;
	private: System::Windows::Forms::TextBox^  Pink_A_box_UB;
	private: System::Windows::Forms::TextBox^  Pink_L_box_UB;
	private: System::Windows::Forms::TextBox^  Pink_B_box_UB;
	private: System::Windows::Forms::TextBox^  Purple_A_box_UB;
	private: System::Windows::Forms::TextBox^  Purple_L_box_UB;
	private: System::Windows::Forms::TextBox^  Purple_B_box_UB;
	private: System::Windows::Forms::TextBox^  Description_TextBox;			 
	private: System::Windows::Forms::RichTextBox^  Color_Space_User_Note;
 
		// Initialization of Labels
 
	private: System::Windows::Forms::Label^  L_component;
	private: System::Windows::Forms::Label^  A_component;
	private: System::Windows::Forms::Label^  B_component;
	private: System::Windows::Forms::Label^  Red_label;
	private: System::Windows::Forms::Label^  Green_label;
	private: System::Windows::Forms::Label^  Blue_label;
	private: System::Windows::Forms::Label^  Yellow_label;
	private: System::Windows::Forms::Label^  Cyan_label;
	private: System::Windows::Forms::Label^  Orange_label;
	private: System::Windows::Forms::Label^  Brown_label;
	private: System::Windows::Forms::Label^  Black_label;
	private: System::Windows::Forms::Label^  White_label;
	private: System::Windows::Forms::Label^  Pink_label;
	private: System::Windows::Forms::Label^  Purple_label;
	private: System::Windows::Forms::Label^  label1;
	private: System::Windows::Forms::Label^  label2;
	private: System::Windows::Forms::Label^  label3;
	private: System::Windows::Forms::Label^  Red_LB;
	private: System::Windows::Forms::Label^  label5;
	private: System::Windows::Forms::Label^  label23;
	private: System::Windows::Forms::Label^  label24;
	private: System::Windows::Forms::Label^  label21;
	private: System::Windows::Forms::Label^  label22;
	private: System::Windows::Forms::Label^  label19;
	private: System::Windows::Forms::Label^  label20;
	private: System::Windows::Forms::Label^  label17;
	private: System::Windows::Forms::Label^  label18;
	private: System::Windows::Forms::Label^  label15;
	private: System::Windows::Forms::Label^  label16;
	private: System::Windows::Forms::Label^  label13;
	private: System::Windows::Forms::Label^  label14;
	private: System::Windows::Forms::Label^  label11;
	private: System::Windows::Forms::Label^  label12;
	private: System::Windows::Forms::Label^  label9;
	private: System::Windows::Forms::Label^  label10;
	private: System::Windows::Forms::Label^  label7;
	private: System::Windows::Forms::Label^  label8;
	private: System::Windows::Forms::Label^  label4;
	private: System::Windows::Forms::Label^  label6;
 
		// Initialization of Color Dialog Box
 
	private: System::Windows::Forms::ColorDialog^  colorDialog1;
private: System::Windows::Forms::Button^  Object_Describer_Button;
 
		// Initialization of Buttons
 
 
	private: System::Windows::Forms::Button^  Clear_Description;
	private: System::Windows::Forms::Button^  Best_Match_Button;
 
		// Initialization of ListBox
 
 
private: System::Windows::Forms::Label^  Size_LB_Label;
private: System::Windows::Forms::TextBox^  Height_UB_Text_Box;
 
 
private: System::Windows::Forms::TextBox^  Width_UB_Text_Box;
 
private: System::Windows::Forms::TextBox^  Height_LB_Box;
private: System::Windows::Forms::TextBox^  Width_LB_Box;
private: System::Windows::Forms::Button^  Select_Size_Button;
private: System::Windows::Forms::ComboBox^  Size_Select_Combo_Box;
 
private: System::Windows::Forms::Label^  Size_UB_Label;
private: System::Windows::Forms::Label^  Height_Label;
private: System::Windows::Forms::Label^  Width_Label;
private: System::Windows::Forms::Button^  Save_Color_Space_Button;
private: System::Windows::Forms::ComboBox^  Algorithm_Combo_Box;
 
 
 
 
 
	private:
		/// <summary>
		/// Required designer variable.
		/// </summary>
		System::ComponentModel::Container ^components;
 
struct RGB { unsigned char r, g, b; };
struct XYZ { float x, y, z; };
		
 
#pragma region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		void InitializeComponent(void)
		{
			System::ComponentModel::ComponentResourceManager^  resources = (gcnew System::ComponentModel::ComponentResourceManager(Form1::typeid));
			this->Input_Text_Tab = (gcnew System::Windows::Forms::TabPage());
			this->Best_Match_Button = (gcnew System::Windows::Forms::Button());
			this->Clear_Description = (gcnew System::Windows::Forms::Button());
			this->Description_TextBox = (gcnew System::Windows::Forms::TextBox());
			this->Object_Describer_Button = (gcnew System::Windows::Forms::Button());
			this->Define_Parameters_Tab = (gcnew System::Windows::Forms::TabPage());
			this->Image_Display_Tab = (gcnew System::Windows::Forms::TabPage());
			this->Color_Space_Tab = (gcnew System::Windows::Forms::TabPage());
			this->label23 = (gcnew System::Windows::Forms::Label());
			this->label24 = (gcnew System::Windows::Forms::Label());
			this->label21 = (gcnew System::Windows::Forms::Label());
			this->label22 = (gcnew System::Windows::Forms::Label());
			this->label19 = (gcnew System::Windows::Forms::Label());
			this->label20 = (gcnew System::Windows::Forms::Label());
			this->label17 = (gcnew System::Windows::Forms::Label());
			this->label18 = (gcnew System::Windows::Forms::Label());
			this->label15 = (gcnew System::Windows::Forms::Label());
			this->label16 = (gcnew System::Windows::Forms::Label());
			this->label13 = (gcnew System::Windows::Forms::Label());
			this->label14 = (gcnew System::Windows::Forms::Label());
			this->label11 = (gcnew System::Windows::Forms::Label());
			this->label12 = (gcnew System::Windows::Forms::Label());
			this->label9 = (gcnew System::Windows::Forms::Label());
			this->label10 = (gcnew System::Windows::Forms::Label());
			this->label7 = (gcnew System::Windows::Forms::Label());
			this->label8 = (gcnew System::Windows::Forms::Label());
			this->label4 = (gcnew System::Windows::Forms::Label());
			this->label6 = (gcnew System::Windows::Forms::Label());
			this->label5 = (gcnew System::Windows::Forms::Label());
			this->Red_LB = (gcnew System::Windows::Forms::Label());
			this->Black_A_box_UB = (gcnew System::Windows::Forms::TextBox());
			this->Black_L_box_UB = (gcnew System::Windows::Forms::TextBox());
			this->Black_B_box_UB = (gcnew System::Windows::Forms::TextBox());
			this->White_A_box_UB = (gcnew System::Windows::Forms::TextBox());
			this->White_L_box_UB = (gcnew System::Windows::Forms::TextBox());
			this->White_B_box_UB = (gcnew System::Windows::Forms::TextBox());
			this->Pink_A_box_UB = (gcnew System::Windows::Forms::TextBox());
			this->Pink_L_box_UB = (gcnew System::Windows::Forms::TextBox());
			this->Pink_B_box_UB = (gcnew System::Windows::Forms::TextBox());
			this->Purple_A_box_UB = (gcnew System::Windows::Forms::TextBox());
			this->Purple_L_box_UB = (gcnew System::Windows::Forms::TextBox());
			this->Purple_B_box_UB = (gcnew System::Windows::Forms::TextBox());
			this->Yellow_B_box_UB = (gcnew System::Windows::Forms::TextBox());
			this->Yellow_A_box_UB = (gcnew System::Windows::Forms::TextBox());
			this->Yellow_L_box_UB = (gcnew System::Windows::Forms::TextBox());
			this->Brown_B_box_UB = (gcnew System::Windows::Forms::TextBox());
			this->Brown_A_box_UB = (gcnew System::Windows::Forms::TextBox());
			this->Brown_L_box_UB = (gcnew System::Windows::Forms::TextBox());
			this->Orange_B_box_UB = (gcnew System::Windows::Forms::TextBox());
			this->Orange_A_box_UB = (gcnew System::Windows::Forms::TextBox());
			this->Orange_L_box_UB = (gcnew System::Windows::Forms::TextBox());
			this->Cyan_B_box_UB = (gcnew System::Windows::Forms::TextBox());
			this->Cyan_A_box_UB = (gcnew System::Windows::Forms::TextBox());
			this->Cyan_L_box_UB = (gcnew System::Windows::Forms::TextBox());
			this->Blue_B_box_UB = (gcnew System::Windows::Forms::TextBox());
			this->Blue_A_box_UB = (gcnew System::Windows::Forms::TextBox());
			this->Blue_L_box_UB = (gcnew System::Windows::Forms::TextBox());
			this->Green_B_box_UB = (gcnew System::Windows::Forms::TextBox());
			this->Green_A_box_UB = (gcnew System::Windows::Forms::TextBox());
			this->Green_L_box_UB = (gcnew System::Windows::Forms::TextBox());
			this->Red_A_box_UB = (gcnew System::Windows::Forms::TextBox());
			this->Red_L_box_UB = (gcnew System::Windows::Forms::TextBox());
			this->Red_B_box_UB = (gcnew System::Windows::Forms::TextBox());
			this->Color_Space_User_Note = (gcnew System::Windows::Forms::RichTextBox());
			this->label1 = (gcnew System::Windows::Forms::Label());
			this->label2 = (gcnew System::Windows::Forms::Label());
			this->label3 = (gcnew System::Windows::Forms::Label());
			this->Black_label = (gcnew System::Windows::Forms::Label());
			this->Black_A_box_LB = (gcnew System::Windows::Forms::TextBox());
			this->Black_L_box_LB = (gcnew System::Windows::Forms::TextBox());
			this->Black_B_box_LB = (gcnew System::Windows::Forms::TextBox());
			this->White_label = (gcnew System::Windows::Forms::Label());
			this->White_A_box_LB = (gcnew System::Windows::Forms::TextBox());
			this->White_L_box_LB = (gcnew System::Windows::Forms::TextBox());
			this->White_B_box_LB = (gcnew System::Windows::Forms::TextBox());
			this->Pink_label = (gcnew System::Windows::Forms::Label());
			this->Pink_A_box_LB = (gcnew System::Windows::Forms::TextBox());
			this->Pink_L_box_LB = (gcnew System::Windows::Forms::TextBox());
			this->Pink_B_box_LB = (gcnew System::Windows::Forms::TextBox());
			this->Purple_label = (gcnew System::Windows::Forms::Label());
			this->Purple_A_box_LB = (gcnew System::Windows::Forms::TextBox());
			this->Purple_L_box_LB = (gcnew System::Windows::Forms::TextBox());
			this->Purple_B_box_LB = (gcnew System::Windows::Forms::TextBox());
			this->Orange_B_box_LB = (gcnew System::Windows::Forms::TextBox());
			this->Orange_A_box_LB = (gcnew System::Windows::Forms::TextBox());
			this->Orange_L_box_LB = (gcnew System::Windows::Forms::TextBox());
			this->Orange_label = (gcnew System::Windows::Forms::Label());
			this->Brown_B_box_LB = (gcnew System::Windows::Forms::TextBox());
			this->Brown_A_box_LB = (gcnew System::Windows::Forms::TextBox());
			this->Brown_L_box_LB = (gcnew System::Windows::Forms::TextBox());
			this->Brown_label = (gcnew System::Windows::Forms::Label());
			this->Yellow_B_box_LB = (gcnew System::Windows::Forms::TextBox());
			this->Yellow_A_box_LB = (gcnew System::Windows::Forms::TextBox());
			this->Yellow_L_box_LB = (gcnew System::Windows::Forms::TextBox());
			this->Yellow_label = (gcnew System::Windows::Forms::Label());
			this->Cyan_B_box_LB = (gcnew System::Windows::Forms::TextBox());
			this->Cyan_A_box_LB = (gcnew System::Windows::Forms::TextBox());
			this->Cyan_L_box_LB = (gcnew System::Windows::Forms::TextBox());
			this->Cyan_label = (gcnew System::Windows::Forms::Label());
			this->Blue_B_box_LB = (gcnew System::Windows::Forms::TextBox());
			this->Blue_A_box_LB = (gcnew System::Windows::Forms::TextBox());
			this->Blue_L_box_LB = (gcnew System::Windows::Forms::TextBox());
			this->Blue_label = (gcnew System::Windows::Forms::Label());
			this->Green_label = (gcnew System::Windows::Forms::Label());
			this->Red_label = (gcnew System::Windows::Forms::Label());
			this->Green_B_box_LB = (gcnew System::Windows::Forms::TextBox());
			this->Red_A_box_LB = (gcnew System::Windows::Forms::TextBox());
			this->Red_L_box_LB = (gcnew System::Windows::Forms::TextBox());
			this->Red_B_box_LB = (gcnew System::Windows::Forms::TextBox());
			this->Green_A_box_LB = (gcnew System::Windows::Forms::TextBox());
			this->Green_L_box_LB = (gcnew System::Windows::Forms::TextBox());
			this->L_component = (gcnew System::Windows::Forms::Label());
			this->A_component = (gcnew System::Windows::Forms::Label());
			this->B_component = (gcnew System::Windows::Forms::Label());
			this->Tab_Controller = (gcnew System::Windows::Forms::TabControl());
			this->Name_Setting_Tab = (gcnew System::Windows::Forms::TabPage());
			this->Geo_Attribute_Setting_Tab = (gcnew System::Windows::Forms::TabPage());
			this->colorDialog1 = (gcnew System::Windows::Forms::ColorDialog());
			this->Size_Select_Combo_Box = (gcnew System::Windows::Forms::ComboBox());
			this->Select_Size_Button = (gcnew System::Windows::Forms::Button());
			this->Width_LB_Box = (gcnew System::Windows::Forms::TextBox());
			this->Height_LB_Box = (gcnew System::Windows::Forms::TextBox());
			this->Width_UB_Text_Box = (gcnew System::Windows::Forms::TextBox());
			this->Height_UB_Text_Box = (gcnew System::Windows::Forms::TextBox());
			this->Size_LB_Label = (gcnew System::Windows::Forms::Label());
			this->Size_UB_Label = (gcnew System::Windows::Forms::Label());
			this->Width_Label = (gcnew System::Windows::Forms::Label());
			this->Height_Label = (gcnew System::Windows::Forms::Label());
			this->Save_Color_Space_Button = (gcnew System::Windows::Forms::Button());
			this->Algorithm_Combo_Box = (gcnew System::Windows::Forms::ComboBox());
			this->Input_Text_Tab->SuspendLayout();
			this->Define_Parameters_Tab->SuspendLayout();
			this->Color_Space_Tab->SuspendLayout();
			this->Tab_Controller->SuspendLayout();
			this->SuspendLayout();
			// 
			// Input_Text_Tab
			// 
			this->Input_Text_Tab->Controls->Add(this->Algorithm_Combo_Box);
			this->Input_Text_Tab->Controls->Add(this->Best_Match_Button);
			this->Input_Text_Tab->Controls->Add(this->Clear_Description);
			this->Input_Text_Tab->Controls->Add(this->Description_TextBox);
			this->Input_Text_Tab->Controls->Add(this->Object_Describer_Button);
			this->Input_Text_Tab->Location = System::Drawing::Point(4, 22);
			this->Input_Text_Tab->Name = L"Input_Text_Tab";
			this->Input_Text_Tab->Padding = System::Windows::Forms::Padding(3);
			this->Input_Text_Tab->Size = System::Drawing::Size(1069, 507);
			this->Input_Text_Tab->TabIndex = 0;
			this->Input_Text_Tab->Text = L"Input Text";
			this->Input_Text_Tab->UseVisualStyleBackColor = true;
			// 
			// Best_Match_Button
			// 
			this->Best_Match_Button->Location = System::Drawing::Point(473, 396);
			this->Best_Match_Button->Name = L"Best_Match_Button";
			this->Best_Match_Button->Size = System::Drawing::Size(149, 23);
			this->Best_Match_Button->TabIndex = 4;
			this->Best_Match_Button->Text = L"Find Best Match";
			this->Best_Match_Button->UseVisualStyleBackColor = true;
			this->Best_Match_Button->Click += gcnew System::EventHandler(this, &Form1::Best_Match_Button_Click);
			// 
			// Clear_Description
			// 
			this->Clear_Description->Location = System::Drawing::Point(473, 249);
			this->Clear_Description->Name = L"Clear_Description";
			this->Clear_Description->Size = System::Drawing::Size(149, 23);
			this->Clear_Description->TabIndex = 2;
			this->Clear_Description->Text = L"Clear Description";
			this->Clear_Description->UseVisualStyleBackColor = true;
			this->Clear_Description->Click += gcnew System::EventHandler(this, &Form1::Clear_Description_Click);
			// 
			// Description_TextBox
			// 
			this->Description_TextBox->Location = System::Drawing::Point(436, 176);
			this->Description_TextBox->Name = L"Description_TextBox";
			this->Description_TextBox->Size = System::Drawing::Size(217, 20);
			this->Description_TextBox->TabIndex = 1;
			// 
			// Object_Describer_Button
			// 
			this->Object_Describer_Button->Location = System::Drawing::Point(473, 210);
			this->Object_Describer_Button->Name = L"Object_Describer_Button";
			this->Object_Describer_Button->Size = System::Drawing::Size(149, 23);
			this->Object_Describer_Button->TabIndex = 0;
			this->Object_Describer_Button->Text = L"Describe Object";
			this->Object_Describer_Button->UseVisualStyleBackColor = true;
			this->Object_Describer_Button->Click += gcnew System::EventHandler(this, &Form1::Object_Describer_Button_Click);
			// 
			// Define_Parameters_Tab
			// 
			this->Define_Parameters_Tab->Controls->Add(this->Height_Label);
			this->Define_Parameters_Tab->Controls->Add(this->Width_Label);
			this->Define_Parameters_Tab->Controls->Add(this->Size_UB_Label);
			this->Define_Parameters_Tab->Controls->Add(this->Size_LB_Label);
			this->Define_Parameters_Tab->Controls->Add(this->Height_UB_Text_Box);
			this->Define_Parameters_Tab->Controls->Add(this->Width_UB_Text_Box);
			this->Define_Parameters_Tab->Controls->Add(this->Height_LB_Box);
			this->Define_Parameters_Tab->Controls->Add(this->Width_LB_Box);
			this->Define_Parameters_Tab->Controls->Add(this->Select_Size_Button);
			this->Define_Parameters_Tab->Controls->Add(this->Size_Select_Combo_Box);
			this->Define_Parameters_Tab->Location = System::Drawing::Point(4, 22);
			this->Define_Parameters_Tab->Name = L"Define_Parameters_Tab";
			this->Define_Parameters_Tab->Padding = System::Windows::Forms::Padding(3);
			this->Define_Parameters_Tab->Size = System::Drawing::Size(1069, 507);
			this->Define_Parameters_Tab->TabIndex = 3;
			this->Define_Parameters_Tab->Text = L"Define Size Parameters";
			this->Define_Parameters_Tab->UseVisualStyleBackColor = true;
			// 
			// Image_Display_Tab
			// 
			this->Image_Display_Tab->Location = System::Drawing::Point(4, 22);
			this->Image_Display_Tab->Name = L"Image_Display_Tab";
			this->Image_Display_Tab->Padding = System::Windows::Forms::Padding(3);
			this->Image_Display_Tab->Size = System::Drawing::Size(1069, 507);
			this->Image_Display_Tab->TabIndex = 1;
			this->Image_Display_Tab->Text = L"Image Display";
			this->Image_Display_Tab->UseVisualStyleBackColor = true;
			// 
			// Color_Space_Tab
			// 
			this->Color_Space_Tab->Controls->Add(this->Save_Color_Space_Button);
			this->Color_Space_Tab->Controls->Add(this->label23);
			this->Color_Space_Tab->Controls->Add(this->label24);
			this->Color_Space_Tab->Controls->Add(this->label21);
			this->Color_Space_Tab->Controls->Add(this->label22);
			this->Color_Space_Tab->Controls->Add(this->label19);
			this->Color_Space_Tab->Controls->Add(this->label20);
			this->Color_Space_Tab->Controls->Add(this->label17);
			this->Color_Space_Tab->Controls->Add(this->label18);
			this->Color_Space_Tab->Controls->Add(this->label15);
			this->Color_Space_Tab->Controls->Add(this->label16);
			this->Color_Space_Tab->Controls->Add(this->label13);
			this->Color_Space_Tab->Controls->Add(this->label14);
			this->Color_Space_Tab->Controls->Add(this->label11);
			this->Color_Space_Tab->Controls->Add(this->label12);
			this->Color_Space_Tab->Controls->Add(this->label9);
			this->Color_Space_Tab->Controls->Add(this->label10);
			this->Color_Space_Tab->Controls->Add(this->label7);
			this->Color_Space_Tab->Controls->Add(this->label8);
			this->Color_Space_Tab->Controls->Add(this->label4);
			this->Color_Space_Tab->Controls->Add(this->label6);
			this->Color_Space_Tab->Controls->Add(this->label5);
			this->Color_Space_Tab->Controls->Add(this->Red_LB);
			this->Color_Space_Tab->Controls->Add(this->Black_A_box_UB);
			this->Color_Space_Tab->Controls->Add(this->Black_L_box_UB);
			this->Color_Space_Tab->Controls->Add(this->Black_B_box_UB);
			this->Color_Space_Tab->Controls->Add(this->White_A_box_UB);
			this->Color_Space_Tab->Controls->Add(this->White_L_box_UB);
			this->Color_Space_Tab->Controls->Add(this->White_B_box_UB);
			this->Color_Space_Tab->Controls->Add(this->Pink_A_box_UB);
			this->Color_Space_Tab->Controls->Add(this->Pink_L_box_UB);
			this->Color_Space_Tab->Controls->Add(this->Pink_B_box_UB);
			this->Color_Space_Tab->Controls->Add(this->Purple_A_box_UB);
			this->Color_Space_Tab->Controls->Add(this->Purple_L_box_UB);
			this->Color_Space_Tab->Controls->Add(this->Purple_B_box_UB);
			this->Color_Space_Tab->Controls->Add(this->Yellow_B_box_UB);
			this->Color_Space_Tab->Controls->Add(this->Yellow_A_box_UB);
			this->Color_Space_Tab->Controls->Add(this->Yellow_L_box_UB);
			this->Color_Space_Tab->Controls->Add(this->Brown_B_box_UB);
			this->Color_Space_Tab->Controls->Add(this->Brown_A_box_UB);
			this->Color_Space_Tab->Controls->Add(this->Brown_L_box_UB);
			this->Color_Space_Tab->Controls->Add(this->Orange_B_box_UB);
			this->Color_Space_Tab->Controls->Add(this->Orange_A_box_UB);
			this->Color_Space_Tab->Controls->Add(this->Orange_L_box_UB);
			this->Color_Space_Tab->Controls->Add(this->Cyan_B_box_UB);
			this->Color_Space_Tab->Controls->Add(this->Cyan_A_box_UB);
			this->Color_Space_Tab->Controls->Add(this->Cyan_L_box_UB);
			this->Color_Space_Tab->Controls->Add(this->Blue_B_box_UB);
			this->Color_Space_Tab->Controls->Add(this->Blue_A_box_UB);
			this->Color_Space_Tab->Controls->Add(this->Blue_L_box_UB);
			this->Color_Space_Tab->Controls->Add(this->Green_B_box_UB);
			this->Color_Space_Tab->Controls->Add(this->Green_A_box_UB);
			this->Color_Space_Tab->Controls->Add(this->Green_L_box_UB);
			this->Color_Space_Tab->Controls->Add(this->Red_A_box_UB);
			this->Color_Space_Tab->Controls->Add(this->Red_L_box_UB);
			this->Color_Space_Tab->Controls->Add(this->Red_B_box_UB);
			this->Color_Space_Tab->Controls->Add(this->Color_Space_User_Note);
			this->Color_Space_Tab->Controls->Add(this->label1);
			this->Color_Space_Tab->Controls->Add(this->label2);
			this->Color_Space_Tab->Controls->Add(this->label3);
			this->Color_Space_Tab->Controls->Add(this->Black_label);
			this->Color_Space_Tab->Controls->Add(this->Black_A_box_LB);
			this->Color_Space_Tab->Controls->Add(this->Black_L_box_LB);
			this->Color_Space_Tab->Controls->Add(this->Black_B_box_LB);
			this->Color_Space_Tab->Controls->Add(this->White_label);
			this->Color_Space_Tab->Controls->Add(this->White_A_box_LB);
			this->Color_Space_Tab->Controls->Add(this->White_L_box_LB);
			this->Color_Space_Tab->Controls->Add(this->White_B_box_LB);
			this->Color_Space_Tab->Controls->Add(this->Pink_label);
			this->Color_Space_Tab->Controls->Add(this->Pink_A_box_LB);
			this->Color_Space_Tab->Controls->Add(this->Pink_L_box_LB);
			this->Color_Space_Tab->Controls->Add(this->Pink_B_box_LB);
			this->Color_Space_Tab->Controls->Add(this->Purple_label);
			this->Color_Space_Tab->Controls->Add(this->Purple_A_box_LB);
			this->Color_Space_Tab->Controls->Add(this->Purple_L_box_LB);
			this->Color_Space_Tab->Controls->Add(this->Purple_B_box_LB);
			this->Color_Space_Tab->Controls->Add(this->Orange_B_box_LB);
			this->Color_Space_Tab->Controls->Add(this->Orange_A_box_LB);
			this->Color_Space_Tab->Controls->Add(this->Orange_L_box_LB);
			this->Color_Space_Tab->Controls->Add(this->Orange_label);
			this->Color_Space_Tab->Controls->Add(this->Brown_B_box_LB);
			this->Color_Space_Tab->Controls->Add(this->Brown_A_box_LB);
			this->Color_Space_Tab->Controls->Add(this->Brown_L_box_LB);
			this->Color_Space_Tab->Controls->Add(this->Brown_label);
			this->Color_Space_Tab->Controls->Add(this->Yellow_B_box_LB);
			this->Color_Space_Tab->Controls->Add(this->Yellow_A_box_LB);
			this->Color_Space_Tab->Controls->Add(this->Yellow_L_box_LB);
			this->Color_Space_Tab->Controls->Add(this->Yellow_label);
			this->Color_Space_Tab->Controls->Add(this->Cyan_B_box_LB);
			this->Color_Space_Tab->Controls->Add(this->Cyan_A_box_LB);
			this->Color_Space_Tab->Controls->Add(this->Cyan_L_box_LB);
			this->Color_Space_Tab->Controls->Add(this->Cyan_label);
			this->Color_Space_Tab->Controls->Add(this->Blue_B_box_LB);
			this->Color_Space_Tab->Controls->Add(this->Blue_A_box_LB);
			this->Color_Space_Tab->Controls->Add(this->Blue_L_box_LB);
			this->Color_Space_Tab->Controls->Add(this->Blue_label);
			this->Color_Space_Tab->Controls->Add(this->Green_label);
			this->Color_Space_Tab->Controls->Add(this->Red_label);
			this->Color_Space_Tab->Controls->Add(this->Green_B_box_LB);
			this->Color_Space_Tab->Controls->Add(this->Red_A_box_LB);
			this->Color_Space_Tab->Controls->Add(this->Red_L_box_LB);
			this->Color_Space_Tab->Controls->Add(this->Red_B_box_LB);
			this->Color_Space_Tab->Controls->Add(this->Green_A_box_LB);
			this->Color_Space_Tab->Controls->Add(this->Green_L_box_LB);
			this->Color_Space_Tab->Controls->Add(this->L_component);
			this->Color_Space_Tab->Controls->Add(this->A_component);
			this->Color_Space_Tab->Controls->Add(this->B_component);
			this->Color_Space_Tab->Location = System::Drawing::Point(4, 22);
			this->Color_Space_Tab->Name = L"Color_Space_Tab";
			this->Color_Space_Tab->Padding = System::Windows::Forms::Padding(3);
			this->Color_Space_Tab->Size = System::Drawing::Size(1069, 507);
			this->Color_Space_Tab->TabIndex = 2;
			this->Color_Space_Tab->Text = L"Define Color Space";
			this->Color_Space_Tab->UseVisualStyleBackColor = true;
			// 
			// label23
			// 
			this->label23->AutoSize = true;
			this->label23->Location = System::Drawing::Point(655, 288);
			this->label23->Name = L"label23";
			this->label23->Size = System::Drawing::Size(22, 13);
			this->label23->TabIndex = 110;
			this->label23->Text = L"UB";
			// 
			// label24
			// 
			this->label24->AutoSize = true;
			this->label24->Location = System::Drawing::Point(588, 288);
			this->label24->Name = L"label24";
			this->label24->Size = System::Drawing::Size(20, 13);
			this->label24->TabIndex = 109;
			this->label24->Text = L"LB";
			// 
			// label21
			// 
			this->label21->AutoSize = true;
			this->label21->Location = System::Drawing::Point(495, 288);
			this->label21->Name = L"label21";
			this->label21->Size = System::Drawing::Size(22, 13);
			this->label21->TabIndex = 108;
			this->label21->Text = L"UB";
			// 
			// label22
			// 
			this->label22->AutoSize = true;
			this->label22->Location = System::Drawing::Point(428, 288);
			this->label22->Name = L"label22";
			this->label22->Size = System::Drawing::Size(20, 13);
			this->label22->TabIndex = 107;
			this->label22->Text = L"LB";
			// 
			// label19
			// 
			this->label19->AutoSize = true;
			this->label19->Location = System::Drawing::Point(335, 288);
			this->label19->Name = L"label19";
			this->label19->Size = System::Drawing::Size(22, 13);
			this->label19->TabIndex = 106;
			this->label19->Text = L"UB";
			// 
			// label20
			// 
			this->label20->AutoSize = true;
			this->label20->Location = System::Drawing::Point(265, 288);
			this->label20->Name = L"label20";
			this->label20->Size = System::Drawing::Size(20, 13);
			this->label20->TabIndex = 105;
			this->label20->Text = L"LB";
			// 
			// label17
			// 
			this->label17->AutoSize = true;
			this->label17->Location = System::Drawing::Point(174, 288);
			this->label17->Name = L"label17";
			this->label17->Size = System::Drawing::Size(22, 13);
			this->label17->TabIndex = 104;
			this->label17->Text = L"UB";
			// 
			// label18
			// 
			this->label18->AutoSize = true;
			this->label18->Location = System::Drawing::Point(93, 288);
			this->label18->Name = L"label18";
			this->label18->Size = System::Drawing::Size(20, 13);
			this->label18->TabIndex = 103;
			this->label18->Text = L"LB";
			// 
			// label15
			// 
			this->label15->AutoSize = true;
			this->label15->Location = System::Drawing::Point(1020, 71);
			this->label15->Name = L"label15";
			this->label15->Size = System::Drawing::Size(22, 13);
			this->label15->TabIndex = 102;
			this->label15->Text = L"UB";
			// 
			// label16
			// 
			this->label16->AutoSize = true;
			this->label16->Location = System::Drawing::Point(956, 71);
			this->label16->Name = L"label16";
			this->label16->Size = System::Drawing::Size(20, 13);
			this->label16->TabIndex = 101;
			this->label16->Text = L"LB";
			// 
			// label13
			// 
			this->label13->AutoSize = true;
			this->label13->Location = System::Drawing::Point(873, 71);
			this->label13->Name = L"label13";
			this->label13->Size = System::Drawing::Size(22, 13);
			this->label13->TabIndex = 100;
			this->label13->Text = L"UB";
			// 
			// label14
			// 
			this->label14->AutoSize = true;
			this->label14->Location = System::Drawing::Point(809, 71);
			this->label14->Name = L"label14";
			this->label14->Size = System::Drawing::Size(20, 13);
			this->label14->TabIndex = 99;
			this->label14->Text = L"LB";
			// 
			// label11
			// 
			this->label11->AutoSize = true;
			this->label11->Location = System::Drawing::Point(738, 71);
			this->label11->Name = L"label11";
			this->label11->Size = System::Drawing::Size(22, 13);
			this->label11->TabIndex = 98;
			this->label11->Text = L"UB";
			// 
			// label12
			// 
			this->label12->AutoSize = true;
			this->label12->Location = System::Drawing::Point(674, 71);
			this->label12->Name = L"label12";
			this->label12->Size = System::Drawing::Size(20, 13);
			this->label12->TabIndex = 97;
			this->label12->Text = L"LB";
			// 
			// label9
			// 
			this->label9->AutoSize = true;
			this->label9->Location = System::Drawing::Point(598, 71);
			this->label9->Name = L"label9";
			this->label9->Size = System::Drawing::Size(22, 13);
			this->label9->TabIndex = 96;
			this->label9->Text = L"UB";
			// 
			// label10
			// 
			this->label10->AutoSize = true;
			this->label10->Location = System::Drawing::Point(534, 71);
			this->label10->Name = L"label10";
			this->label10->Size = System::Drawing::Size(20, 13);
			this->label10->TabIndex = 95;
			this->label10->Text = L"LB";
			// 
			// label7
			// 
			this->label7->AutoSize = true;
			this->label7->Location = System::Drawing::Point(456, 71);
			this->label7->Name = L"label7";
			this->label7->Size = System::Drawing::Size(22, 13);
			this->label7->TabIndex = 94;
			this->label7->Text = L"UB";
			// 
			// label8
			// 
			this->label8->AutoSize = true;
			this->label8->Location = System::Drawing::Point(392, 71);
			this->label8->Name = L"label8";
			this->label8->Size = System::Drawing::Size(20, 13);
			this->label8->TabIndex = 93;
			this->label8->Text = L"LB";
			// 
			// label4
			// 
			this->label4->AutoSize = true;
			this->label4->Location = System::Drawing::Point(314, 71);
			this->label4->Name = L"label4";
			this->label4->Size = System::Drawing::Size(22, 13);
			this->label4->TabIndex = 92;
			this->label4->Text = L"UB";
			// 
			// label6
			// 
			this->label6->AutoSize = true;
			this->label6->Location = System::Drawing::Point(250, 71);
			this->label6->Name = L"label6";
			this->label6->Size = System::Drawing::Size(20, 13);
			this->label6->TabIndex = 91;
			this->label6->Text = L"LB";
			// 
			// label5
			// 
			this->label5->AutoSize = true;
			this->label5->Location = System::Drawing::Point(157, 71);
			this->label5->Name = L"label5";
			this->label5->Size = System::Drawing::Size(22, 13);
			this->label5->TabIndex = 90;
			this->label5->Text = L"UB";
			// 
			// Red_LB
			// 
			this->Red_LB->AutoSize = true;
			this->Red_LB->Location = System::Drawing::Point(93, 71);
			this->Red_LB->Name = L"Red_LB";
			this->Red_LB->Size = System::Drawing::Size(20, 13);
			this->Red_LB->TabIndex = 89;
			this->Red_LB->Text = L"LB";
			// 
			// Black_A_box_UB
			// 
			this->Black_A_box_UB->Location = System::Drawing::Point(640, 354);
			this->Black_A_box_UB->Name = L"Black_A_box_UB";
			this->Black_A_box_UB->Size = System::Drawing::Size(49, 20);
			this->Black_A_box_UB->TabIndex = 88;
			// 
			// Black_L_box_UB
			// 
			this->Black_L_box_UB->Location = System::Drawing::Point(640, 313);
			this->Black_L_box_UB->Name = L"Black_L_box_UB";
			this->Black_L_box_UB->Size = System::Drawing::Size(49, 20);
			this->Black_L_box_UB->TabIndex = 87;
			// 
			// Black_B_box_UB
			// 
			this->Black_B_box_UB->Location = System::Drawing::Point(640, 399);
			this->Black_B_box_UB->Name = L"Black_B_box_UB";
			this->Black_B_box_UB->Size = System::Drawing::Size(49, 20);
			this->Black_B_box_UB->TabIndex = 86;
			// 
			// White_A_box_UB
			// 
			this->White_A_box_UB->Location = System::Drawing::Point(479, 353);
			this->White_A_box_UB->Name = L"White_A_box_UB";
			this->White_A_box_UB->Size = System::Drawing::Size(47, 20);
			this->White_A_box_UB->TabIndex = 85;
			// 
			// White_L_box_UB
			// 
			this->White_L_box_UB->Location = System::Drawing::Point(479, 315);
			this->White_L_box_UB->Name = L"White_L_box_UB";
			this->White_L_box_UB->Size = System::Drawing::Size(47, 20);
			this->White_L_box_UB->TabIndex = 84;
			// 
			// White_B_box_UB
			// 
			this->White_B_box_UB->Location = System::Drawing::Point(479, 399);
			this->White_B_box_UB->Name = L"White_B_box_UB";
			this->White_B_box_UB->Size = System::Drawing::Size(47, 20);
			this->White_B_box_UB->TabIndex = 83;
			// 
			// Pink_A_box_UB
			// 
			this->Pink_A_box_UB->Location = System::Drawing::Point(322, 353);
			this->Pink_A_box_UB->Name = L"Pink_A_box_UB";
			this->Pink_A_box_UB->Size = System::Drawing::Size(46, 20);
			this->Pink_A_box_UB->TabIndex = 82;
			// 
			// Pink_L_box_UB
			// 
			this->Pink_L_box_UB->Location = System::Drawing::Point(322, 315);
			this->Pink_L_box_UB->Name = L"Pink_L_box_UB";
			this->Pink_L_box_UB->Size = System::Drawing::Size(46, 20);
			this->Pink_L_box_UB->TabIndex = 81;
			// 
			// Pink_B_box_UB
			// 
			this->Pink_B_box_UB->Location = System::Drawing::Point(322, 399);
			this->Pink_B_box_UB->Name = L"Pink_B_box_UB";
			this->Pink_B_box_UB->Size = System::Drawing::Size(46, 20);
			this->Pink_B_box_UB->TabIndex = 80;
			// 
			// Purple_A_box_UB
			// 
			this->Purple_A_box_UB->Location = System::Drawing::Point(160, 353);
			this->Purple_A_box_UB->Name = L"Purple_A_box_UB";
			this->Purple_A_box_UB->Size = System::Drawing::Size(47, 20);
			this->Purple_A_box_UB->TabIndex = 79;
			// 
			// Purple_L_box_UB
			// 
			this->Purple_L_box_UB->Location = System::Drawing::Point(160, 315);
			this->Purple_L_box_UB->Name = L"Purple_L_box_UB";
			this->Purple_L_box_UB->Size = System::Drawing::Size(47, 20);
			this->Purple_L_box_UB->TabIndex = 78;
			// 
			// Purple_B_box_UB
			// 
			this->Purple_B_box_UB->Location = System::Drawing::Point(160, 399);
			this->Purple_B_box_UB->Name = L"Purple_B_box_UB";
			this->Purple_B_box_UB->Size = System::Drawing::Size(47, 20);
			this->Purple_B_box_UB->TabIndex = 77;
			// 
			// Yellow_B_box_UB
			// 
			this->Yellow_B_box_UB->Location = System::Drawing::Point(729, 182);
			this->Yellow_B_box_UB->Name = L"Yellow_B_box_UB";
			this->Yellow_B_box_UB->Size = System::Drawing::Size(48, 20);
			this->Yellow_B_box_UB->TabIndex = 76;
			// 
			// Yellow_A_box_UB
			// 
			this->Yellow_A_box_UB->Location = System::Drawing::Point(729, 136);
			this->Yellow_A_box_UB->Name = L"Yellow_A_box_UB";
			this->Yellow_A_box_UB->Size = System::Drawing::Size(48, 20);
			this->Yellow_A_box_UB->TabIndex = 75;
			// 
			// Yellow_L_box_UB
			// 
			this->Yellow_L_box_UB->Location = System::Drawing::Point(729, 98);
			this->Yellow_L_box_UB->Name = L"Yellow_L_box_UB";
			this->Yellow_L_box_UB->Size = System::Drawing::Size(48, 20);
			this->Yellow_L_box_UB->TabIndex = 74;
			// 
			// Brown_B_box_UB
			// 
			this->Brown_B_box_UB->Location = System::Drawing::Point(864, 180);
			this->Brown_B_box_UB->Name = L"Brown_B_box_UB";
			this->Brown_B_box_UB->Size = System::Drawing::Size(42, 20);
			this->Brown_B_box_UB->TabIndex = 73;
			// 
			// Brown_A_box_UB
			// 
			this->Brown_A_box_UB->Location = System::Drawing::Point(864, 134);
			this->Brown_A_box_UB->Name = L"Brown_A_box_UB";
			this->Brown_A_box_UB->Size = System::Drawing::Size(42, 20);
			this->Brown_A_box_UB->TabIndex = 72;
			// 
			// Brown_L_box_UB
			// 
			this->Brown_L_box_UB->Location = System::Drawing::Point(864, 97);
			this->Brown_L_box_UB->Name = L"Brown_L_box_UB";
			this->Brown_L_box_UB->Size = System::Drawing::Size(42, 20);
			this->Brown_L_box_UB->TabIndex = 71;
			// 
			// Orange_B_box_UB
			// 
			this->Orange_B_box_UB->Location = System::Drawing::Point(1014, 181);
			this->Orange_B_box_UB->Name = L"Orange_B_box_UB";
			this->Orange_B_box_UB->Size = System::Drawing::Size(45, 20);
			this->Orange_B_box_UB->TabIndex = 70;
			// 
			// Orange_A_box_UB
			// 
			this->Orange_A_box_UB->Location = System::Drawing::Point(1014, 135);
			this->Orange_A_box_UB->Name = L"Orange_A_box_UB";
			this->Orange_A_box_UB->Size = System::Drawing::Size(45, 20);
			this->Orange_A_box_UB->TabIndex = 69;
			// 
			// Orange_L_box_UB
			// 
			this->Orange_L_box_UB->Location = System::Drawing::Point(1014, 97);
			this->Orange_L_box_UB->Name = L"Orange_L_box_UB";
			this->Orange_L_box_UB->Size = System::Drawing::Size(45, 20);
			this->Orange_L_box_UB->TabIndex = 68;
			// 
			// Cyan_B_box_UB
			// 
			this->Cyan_B_box_UB->Location = System::Drawing::Point(583, 182);
			this->Cyan_B_box_UB->Name = L"Cyan_B_box_UB";
			this->Cyan_B_box_UB->Size = System::Drawing::Size(48, 20);
			this->Cyan_B_box_UB->TabIndex = 67;
			// 
			// Cyan_A_box_UB
			// 
			this->Cyan_A_box_UB->Location = System::Drawing::Point(583, 136);
			this->Cyan_A_box_UB->Name = L"Cyan_A_box_UB";
			this->Cyan_A_box_UB->Size = System::Drawing::Size(48, 20);
			this->Cyan_A_box_UB->TabIndex = 66;
			// 
			// Cyan_L_box_UB
			// 
			this->Cyan_L_box_UB->Location = System::Drawing::Point(583, 98);
			this->Cyan_L_box_UB->Name = L"Cyan_L_box_UB";
			this->Cyan_L_box_UB->Size = System::Drawing::Size(48, 20);
			this->Cyan_L_box_UB->TabIndex = 65;
			// 
			// Blue_B_box_UB
			// 
			this->Blue_B_box_UB->Location = System::Drawing::Point(445, 181);
			this->Blue_B_box_UB->Name = L"Blue_B_box_UB";
			this->Blue_B_box_UB->Size = System::Drawing::Size(48, 20);
			this->Blue_B_box_UB->TabIndex = 64;
			// 
			// Blue_A_box_UB
			// 
			this->Blue_A_box_UB->Location = System::Drawing::Point(445, 135);
			this->Blue_A_box_UB->Name = L"Blue_A_box_UB";
			this->Blue_A_box_UB->Size = System::Drawing::Size(48, 20);
			this->Blue_A_box_UB->TabIndex = 63;
			// 
			// Blue_L_box_UB
			// 
			this->Blue_L_box_UB->Location = System::Drawing::Point(445, 97);
			this->Blue_L_box_UB->Name = L"Blue_L_box_UB";
			this->Blue_L_box_UB->Size = System::Drawing::Size(48, 20);
			this->Blue_L_box_UB->TabIndex = 62;
			// 
			// Green_B_box_UB
			// 
			this->Green_B_box_UB->Location = System::Drawing::Point(299, 182);
			this->Green_B_box_UB->Name = L"Green_B_box_UB";
			this->Green_B_box_UB->Size = System::Drawing::Size(46, 20);
			this->Green_B_box_UB->TabIndex = 61;
			// 
			// Green_A_box_UB
			// 
			this->Green_A_box_UB->Location = System::Drawing::Point(299, 135);
			this->Green_A_box_UB->Name = L"Green_A_box_UB";
			this->Green_A_box_UB->Size = System::Drawing::Size(46, 20);
			this->Green_A_box_UB->TabIndex = 60;
			// 
			// Green_L_box_UB
			// 
			this->Green_L_box_UB->Location = System::Drawing::Point(299, 97);
			this->Green_L_box_UB->Name = L"Green_L_box_UB";
			this->Green_L_box_UB->Size = System::Drawing::Size(46, 20);
			this->Green_L_box_UB->TabIndex = 59;
			// 
			// Red_A_box_UB
			// 
			this->Red_A_box_UB->Location = System::Drawing::Point(151, 135);
			this->Red_A_box_UB->Name = L"Red_A_box_UB";
			this->Red_A_box_UB->Size = System::Drawing::Size(45, 20);
			this->Red_A_box_UB->TabIndex = 58;
			// 
			// Red_L_box_UB
			// 
			this->Red_L_box_UB->Location = System::Drawing::Point(151, 97);
			this->Red_L_box_UB->Name = L"Red_L_box_UB";
			this->Red_L_box_UB->Size = System::Drawing::Size(45, 20);
			this->Red_L_box_UB->TabIndex = 57;
			// 
			// Red_B_box_UB
			// 
			this->Red_B_box_UB->Location = System::Drawing::Point(151, 181);
			this->Red_B_box_UB->Name = L"Red_B_box_UB";
			this->Red_B_box_UB->Size = System::Drawing::Size(45, 20);
			this->Red_B_box_UB->TabIndex = 56;
			// 
			// Color_Space_User_Note
			// 
			this->Color_Space_User_Note->Font = (gcnew System::Drawing::Font(L"Cambria", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, 
				static_cast<System::Byte>(0)));
			this->Color_Space_User_Note->Location = System::Drawing::Point(729, 353);
			this->Color_Space_User_Note->Name = L"Color_Space_User_Note";
			this->Color_Space_User_Note->Size = System::Drawing::Size(340, 154);
			this->Color_Space_User_Note->TabIndex = 55;
			this->Color_Space_User_Note->Text = resources->GetString(L"Color_Space_User_Note.Text");
			// 
			// label1
			// 
			this->label1->AutoSize = true;
			this->label1->Location = System::Drawing::Point(18, 315);
			this->label1->Name = L"label1";
			this->label1->Size = System::Drawing::Size(17, 13);
			this->label1->TabIndex = 54;
			this->label1->Text = L"L*";
			// 
			// label2
			// 
			this->label2->AutoSize = true;
			this->label2->Location = System::Drawing::Point(18, 354);
			this->label2->Name = L"label2";
			this->label2->Size = System::Drawing::Size(18, 13);
			this->label2->TabIndex = 53;
			this->label2->Text = L"A*";
			// 
			// label3
			// 
			this->label3->AutoSize = true;
			this->label3->Location = System::Drawing::Point(18, 399);
			this->label3->Name = L"label3";
			this->label3->Size = System::Drawing::Size(18, 13);
			this->label3->TabIndex = 52;
			this->label3->Text = L"B*";
			// 
			// Black_label
			// 
			this->Black_label->AutoSize = true;
			this->Black_label->Font = (gcnew System::Drawing::Font(L"Arial Black", 16, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
				static_cast<System::Byte>(0)));
			this->Black_label->Location = System::Drawing::Point(595, 243);
			this->Black_label->Name = L"Black_label";
			this->Black_label->Size = System::Drawing::Size(83, 31);
			this->Black_label->TabIndex = 51;
			this->Black_label->Text = L"Black";
			this->Black_label->Click += gcnew System::EventHandler(this, &Form1::Black_Click);
			// 
			// Black_A_box_LB
			// 
			this->Black_A_box_LB->Location = System::Drawing::Point(569, 354);
			this->Black_A_box_LB->Name = L"Black_A_box_LB";
			this->Black_A_box_LB->Size = System::Drawing::Size(49, 20);
			this->Black_A_box_LB->TabIndex = 50;
			// 
			// Black_L_box_LB
			// 
			this->Black_L_box_LB->Location = System::Drawing::Point(569, 313);
			this->Black_L_box_LB->Name = L"Black_L_box_LB";
			this->Black_L_box_LB->Size = System::Drawing::Size(49, 20);
			this->Black_L_box_LB->TabIndex = 49;
			// 
			// Black_B_box_LB
			// 
			this->Black_B_box_LB->Location = System::Drawing::Point(569, 399);
			this->Black_B_box_LB->Name = L"Black_B_box_LB";
			this->Black_B_box_LB->Size = System::Drawing::Size(49, 20);
			this->Black_B_box_LB->TabIndex = 48;
			// 
			// White_label
			// 
			this->White_label->AutoSize = true;
			this->White_label->Font = (gcnew System::Drawing::Font(L"Arial Black", 16, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
				static_cast<System::Byte>(0)));
			this->White_label->Location = System::Drawing::Point(425, 243);
			this->White_label->Name = L"White_label";
			this->White_label->Size = System::Drawing::Size(83, 31);
			this->White_label->TabIndex = 47;
			this->White_label->Text = L"White";
			this->White_label->Click += gcnew System::EventHandler(this, &Form1::White_Click);
			// 
			// White_A_box_LB
			// 
			this->White_A_box_LB->Location = System::Drawing::Point(410, 353);
			this->White_A_box_LB->Name = L"White_A_box_LB";
			this->White_A_box_LB->Size = System::Drawing::Size(47, 20);
			this->White_A_box_LB->TabIndex = 46;
			// 
			// White_L_box_LB
			// 
			this->White_L_box_LB->Location = System::Drawing::Point(410, 315);
			this->White_L_box_LB->Name = L"White_L_box_LB";
			this->White_L_box_LB->Size = System::Drawing::Size(47, 20);
			this->White_L_box_LB->TabIndex = 45;
			// 
			// White_B_box_LB
			// 
			this->White_B_box_LB->Location = System::Drawing::Point(410, 399);
			this->White_B_box_LB->Name = L"White_B_box_LB";
			this->White_B_box_LB->Size = System::Drawing::Size(47, 20);
			this->White_B_box_LB->TabIndex = 44;
			// 
			// Pink_label
			// 
			this->Pink_label->AutoSize = true;
			this->Pink_label->Font = (gcnew System::Drawing::Font(L"Arial Black", 16, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
				static_cast<System::Byte>(0)));
			this->Pink_label->Location = System::Drawing::Point(278, 243);
			this->Pink_label->Name = L"Pink_label";
			this->Pink_label->Size = System::Drawing::Size(67, 31);
			this->Pink_label->TabIndex = 43;
			this->Pink_label->Text = L"Pink";
			this->Pink_label->Click += gcnew System::EventHandler(this, &Form1::Pink_Click);
			// 
			// Pink_A_box_LB
			// 
			this->Pink_A_box_LB->Location = System::Drawing::Point(253, 353);
			this->Pink_A_box_LB->Name = L"Pink_A_box_LB";
			this->Pink_A_box_LB->Size = System::Drawing::Size(46, 20);
			this->Pink_A_box_LB->TabIndex = 42;
			// 
			// Pink_L_box_LB
			// 
			this->Pink_L_box_LB->Location = System::Drawing::Point(253, 315);
			this->Pink_L_box_LB->Name = L"Pink_L_box_LB";
			this->Pink_L_box_LB->Size = System::Drawing::Size(46, 20);
			this->Pink_L_box_LB->TabIndex = 41;
			// 
			// Pink_B_box_LB
			// 
			this->Pink_B_box_LB->Location = System::Drawing::Point(253, 399);
			this->Pink_B_box_LB->Name = L"Pink_B_box_LB";
			this->Pink_B_box_LB->Size = System::Drawing::Size(46, 20);
			this->Pink_B_box_LB->TabIndex = 40;
			// 
			// Purple_label
			// 
			this->Purple_label->AutoSize = true;
			this->Purple_label->Font = (gcnew System::Drawing::Font(L"Arial Black", 16, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
				static_cast<System::Byte>(0)));
			this->Purple_label->Location = System::Drawing::Point(115, 243);
			this->Purple_label->Name = L"Purple_label";
			this->Purple_label->Size = System::Drawing::Size(92, 31);
			this->Purple_label->TabIndex = 39;
			this->Purple_label->Text = L"Purple";
			this->Purple_label->Click += gcnew System::EventHandler(this, &Form1::Purple_Click);
			// 
			// Purple_A_box_LB
			// 
			this->Purple_A_box_LB->Location = System::Drawing::Point(83, 353);
			this->Purple_A_box_LB->Name = L"Purple_A_box_LB";
			this->Purple_A_box_LB->Size = System::Drawing::Size(47, 20);
			this->Purple_A_box_LB->TabIndex = 38;
			// 
			// Purple_L_box_LB
			// 
			this->Purple_L_box_LB->Location = System::Drawing::Point(83, 315);
			this->Purple_L_box_LB->Name = L"Purple_L_box_LB";
			this->Purple_L_box_LB->Size = System::Drawing::Size(47, 20);
			this->Purple_L_box_LB->TabIndex = 37;
			// 
			// Purple_B_box_LB
			// 
			this->Purple_B_box_LB->Location = System::Drawing::Point(83, 399);
			this->Purple_B_box_LB->Name = L"Purple_B_box_LB";
			this->Purple_B_box_LB->Size = System::Drawing::Size(47, 20);
			this->Purple_B_box_LB->TabIndex = 36;
			// 
			// Orange_B_box_LB
			// 
			this->Orange_B_box_LB->Location = System::Drawing::Point(946, 181);
			this->Orange_B_box_LB->Name = L"Orange_B_box_LB";
			this->Orange_B_box_LB->Size = System::Drawing::Size(45, 20);
			this->Orange_B_box_LB->TabIndex = 35;
			// 
			// Orange_A_box_LB
			// 
			this->Orange_A_box_LB->Location = System::Drawing::Point(946, 135);
			this->Orange_A_box_LB->Name = L"Orange_A_box_LB";
			this->Orange_A_box_LB->Size = System::Drawing::Size(45, 20);
			this->Orange_A_box_LB->TabIndex = 34;
			// 
			// Orange_L_box_LB
			// 
			this->Orange_L_box_LB->Location = System::Drawing::Point(946, 97);
			this->Orange_L_box_LB->Name = L"Orange_L_box_LB";
			this->Orange_L_box_LB->Size = System::Drawing::Size(45, 20);
			this->Orange_L_box_LB->TabIndex = 33;
			// 
			// Orange_label
			// 
			this->Orange_label->AutoSize = true;
			this->Orange_label->Font = (gcnew System::Drawing::Font(L"Arial Black", 16, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
				static_cast<System::Byte>(0)));
			this->Orange_label->Location = System::Drawing::Point(940, 26);
			this->Orange_label->Name = L"Orange_label";
			this->Orange_label->Size = System::Drawing::Size(102, 31);
			this->Orange_label->TabIndex = 32;
			this->Orange_label->Text = L"Orange";
			this->Orange_label->Click += gcnew System::EventHandler(this, &Form1::Orange_Click);
			// 
			// Brown_B_box_LB
			// 
			this->Brown_B_box_LB->Location = System::Drawing::Point(800, 180);
			this->Brown_B_box_LB->Name = L"Brown_B_box_LB";
			this->Brown_B_box_LB->Size = System::Drawing::Size(42, 20);
			this->Brown_B_box_LB->TabIndex = 31;
			// 
			// Brown_A_box_LB
			// 
			this->Brown_A_box_LB->Location = System::Drawing::Point(800, 134);
			this->Brown_A_box_LB->Name = L"Brown_A_box_LB";
			this->Brown_A_box_LB->Size = System::Drawing::Size(42, 20);
			this->Brown_A_box_LB->TabIndex = 30;
			// 
			// Brown_L_box_LB
			// 
			this->Brown_L_box_LB->Location = System::Drawing::Point(800, 97);
			this->Brown_L_box_LB->Name = L"Brown_L_box_LB";
			this->Brown_L_box_LB->Size = System::Drawing::Size(42, 20);
			this->Brown_L_box_LB->TabIndex = 29;
			// 
			// Brown_label
			// 
			this->Brown_label->AutoSize = true;
			this->Brown_label->Font = (gcnew System::Drawing::Font(L"Arial Black", 16, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
				static_cast<System::Byte>(0)));
			this->Brown_label->Location = System::Drawing::Point(803, 26);
			this->Brown_label->Name = L"Brown_label";
			this->Brown_label->Size = System::Drawing::Size(92, 31);
			this->Brown_label->TabIndex = 28;
			this->Brown_label->Text = L"Brown";
			this->Brown_label->Click += gcnew System::EventHandler(this, &Form1::Brown_Click);
			// 
			// Yellow_B_box_LB
			// 
			this->Yellow_B_box_LB->Location = System::Drawing::Point(658, 181);
			this->Yellow_B_box_LB->Name = L"Yellow_B_box_LB";
			this->Yellow_B_box_LB->Size = System::Drawing::Size(48, 20);
			this->Yellow_B_box_LB->TabIndex = 27;
			// 
			// Yellow_A_box_LB
			// 
			this->Yellow_A_box_LB->Location = System::Drawing::Point(658, 135);
			this->Yellow_A_box_LB->Name = L"Yellow_A_box_LB";
			this->Yellow_A_box_LB->Size = System::Drawing::Size(48, 20);
			this->Yellow_A_box_LB->TabIndex = 26;
			// 
			// Yellow_L_box_LB
			// 
			this->Yellow_L_box_LB->Location = System::Drawing::Point(658, 97);
			this->Yellow_L_box_LB->Name = L"Yellow_L_box_LB";
			this->Yellow_L_box_LB->Size = System::Drawing::Size(48, 20);
			this->Yellow_L_box_LB->TabIndex = 25;
			// 
			// Yellow_label
			// 
			this->Yellow_label->AutoSize = true;
			this->Yellow_label->Font = (gcnew System::Drawing::Font(L"Arial Black", 16, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
				static_cast<System::Byte>(0)));
			this->Yellow_label->Location = System::Drawing::Point(664, 26);
			this->Yellow_label->Name = L"Yellow_label";
			this->Yellow_label->Size = System::Drawing::Size(96, 31);
			this->Yellow_label->TabIndex = 24;
			this->Yellow_label->Text = L"Yellow";
			this->Yellow_label->Click += gcnew System::EventHandler(this, &Form1::Yellow_Click);
			// 
			// Cyan_B_box_LB
			// 
			this->Cyan_B_box_LB->Location = System::Drawing::Point(517, 181);
			this->Cyan_B_box_LB->Name = L"Cyan_B_box_LB";
			this->Cyan_B_box_LB->Size = System::Drawing::Size(48, 20);
			this->Cyan_B_box_LB->TabIndex = 23;
			// 
			// Cyan_A_box_LB
			// 
			this->Cyan_A_box_LB->Location = System::Drawing::Point(517, 135);
			this->Cyan_A_box_LB->Name = L"Cyan_A_box_LB";
			this->Cyan_A_box_LB->Size = System::Drawing::Size(48, 20);
			this->Cyan_A_box_LB->TabIndex = 22;
			// 
			// Cyan_L_box_LB
			// 
			this->Cyan_L_box_LB->Location = System::Drawing::Point(517, 97);
			this->Cyan_L_box_LB->Name = L"Cyan_L_box_LB";
			this->Cyan_L_box_LB->Size = System::Drawing::Size(48, 20);
			this->Cyan_L_box_LB->TabIndex = 21;
			// 
			// Cyan_label
			// 
			this->Cyan_label->AutoSize = true;
			this->Cyan_label->Font = (gcnew System::Drawing::Font(L"Arial Black", 16, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
				static_cast<System::Byte>(0)));
			this->Cyan_label->Location = System::Drawing::Point(533, 26);
			this->Cyan_label->Name = L"Cyan_label";
			this->Cyan_label->Size = System::Drawing::Size(74, 31);
			this->Cyan_label->TabIndex = 20;
			this->Cyan_label->Text = L"Cyan";
			this->Cyan_label->Click += gcnew System::EventHandler(this, &Form1::Cyan_Click);
			// 
			// Blue_B_box_LB
			// 
			this->Blue_B_box_LB->Location = System::Drawing::Point(376, 181);
			this->Blue_B_box_LB->Name = L"Blue_B_box_LB";
			this->Blue_B_box_LB->Size = System::Drawing::Size(48, 20);
			this->Blue_B_box_LB->TabIndex = 19;
			// 
			// Blue_A_box_LB
			// 
			this->Blue_A_box_LB->Location = System::Drawing::Point(376, 135);
			this->Blue_A_box_LB->Name = L"Blue_A_box_LB";
			this->Blue_A_box_LB->Size = System::Drawing::Size(48, 20);
			this->Blue_A_box_LB->TabIndex = 18;
			// 
			// Blue_L_box_LB
			// 
			this->Blue_L_box_LB->Location = System::Drawing::Point(376, 97);
			this->Blue_L_box_LB->Name = L"Blue_L_box_LB";
			this->Blue_L_box_LB->Size = System::Drawing::Size(48, 20);
			this->Blue_L_box_LB->TabIndex = 17;
			// 
			// Blue_label
			// 
			this->Blue_label->AutoSize = true;
			this->Blue_label->Font = (gcnew System::Drawing::Font(L"Arial Black", 16, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
				static_cast<System::Byte>(0)));
			this->Blue_label->Location = System::Drawing::Point(404, 26);
			this->Blue_label->Name = L"Blue_label";
			this->Blue_label->Size = System::Drawing::Size(68, 31);
			this->Blue_label->TabIndex = 16;
			this->Blue_label->Text = L"Blue";
			this->Blue_label->Click += gcnew System::EventHandler(this, &Form1::Blue_Click);
			// 
			// Green_label
			// 
			this->Green_label->AutoSize = true;
			this->Green_label->Font = (gcnew System::Drawing::Font(L"Arial Black", 16, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
				static_cast<System::Byte>(0)));
			this->Green_label->Location = System::Drawing::Point(247, 26);
			this->Green_label->Name = L"Green_label";
			this->Green_label->Size = System::Drawing::Size(87, 31);
			this->Green_label->TabIndex = 15;
			this->Green_label->Text = L"Green";
			this->Green_label->Click += gcnew System::EventHandler(this, &Form1::Green_Click);
			// 
			// Red_label
			// 
			this->Red_label->AutoSize = true;
			this->Red_label->Font = (gcnew System::Drawing::Font(L"Arial Black", 16, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
				static_cast<System::Byte>(0)));
			this->Red_label->Location = System::Drawing::Point(115, 26);
			this->Red_label->Name = L"Red_label";
			this->Red_label->Size = System::Drawing::Size(61, 31);
			this->Red_label->TabIndex = 14;
			this->Red_label->Text = L"Red";
			this->Red_label->Click += gcnew System::EventHandler(this, &Form1::Red_Click);
			// 
			// Green_B_box_LB
			// 
			this->Green_B_box_LB->Location = System::Drawing::Point(234, 182);
			this->Green_B_box_LB->Name = L"Green_B_box_LB";
			this->Green_B_box_LB->Size = System::Drawing::Size(46, 20);
			this->Green_B_box_LB->TabIndex = 12;
			// 
			// Red_A_box_LB
			// 
			this->Red_A_box_LB->Location = System::Drawing::Point(83, 135);
			this->Red_A_box_LB->Name = L"Red_A_box_LB";
			this->Red_A_box_LB->Size = System::Drawing::Size(45, 20);
			this->Red_A_box_LB->TabIndex = 5;
			// 
			// Red_L_box_LB
			// 
			this->Red_L_box_LB->Location = System::Drawing::Point(83, 98);
			this->Red_L_box_LB->Name = L"Red_L_box_LB";
			this->Red_L_box_LB->Size = System::Drawing::Size(45, 20);
			this->Red_L_box_LB->TabIndex = 4;
			// 
			// Red_B_box_LB
			// 
			this->Red_B_box_LB->Location = System::Drawing::Point(83, 182);
			this->Red_B_box_LB->Name = L"Red_B_box_LB";
			this->Red_B_box_LB->Size = System::Drawing::Size(45, 20);
			this->Red_B_box_LB->TabIndex = 3;
			// 
			// Green_A_box_LB
			// 
			this->Green_A_box_LB->Location = System::Drawing::Point(234, 136);
			this->Green_A_box_LB->Name = L"Green_A_box_LB";
			this->Green_A_box_LB->Size = System::Drawing::Size(46, 20);
			this->Green_A_box_LB->TabIndex = 2;
			// 
			// Green_L_box_LB
			// 
			this->Green_L_box_LB->Location = System::Drawing::Point(234, 98);
			this->Green_L_box_LB->Name = L"Green_L_box_LB";
			this->Green_L_box_LB->Size = System::Drawing::Size(46, 20);
			this->Green_L_box_LB->TabIndex = 1;
			// 
			// L_component
			// 
			this->L_component->AutoSize = true;
			this->L_component->Location = System::Drawing::Point(17, 100);
			this->L_component->Name = L"L_component";
			this->L_component->Size = System::Drawing::Size(17, 13);
			this->L_component->TabIndex = 10;
			this->L_component->Text = L"L*";
			// 
			// A_component
			// 
			this->A_component->AutoSize = true;
			this->A_component->Location = System::Drawing::Point(17, 139);
			this->A_component->Name = L"A_component";
			this->A_component->Size = System::Drawing::Size(18, 13);
			this->A_component->TabIndex = 9;
			this->A_component->Text = L"A*";
			// 
			// B_component
			// 
			this->B_component->AutoSize = true;
			this->B_component->Location = System::Drawing::Point(17, 184);
			this->B_component->Name = L"B_component";
			this->B_component->Size = System::Drawing::Size(18, 13);
			this->B_component->TabIndex = 8;
			this->B_component->Text = L"B*";
			// 
			// Tab_Controller
			// 
			this->Tab_Controller->Controls->Add(this->Input_Text_Tab);
			this->Tab_Controller->Controls->Add(this->Image_Display_Tab);
			this->Tab_Controller->Controls->Add(this->Color_Space_Tab);
			this->Tab_Controller->Controls->Add(this->Define_Parameters_Tab);
			this->Tab_Controller->Controls->Add(this->Name_Setting_Tab);
			this->Tab_Controller->Controls->Add(this->Geo_Attribute_Setting_Tab);
			this->Tab_Controller->Location = System::Drawing::Point(0, 2);
			this->Tab_Controller->Name = L"Tab_Controller";
			this->Tab_Controller->SelectedIndex = 0;
			this->Tab_Controller->Size = System::Drawing::Size(1077, 533);
			this->Tab_Controller->TabIndex = 0;
			// 
			// Name_Setting_Tab
			// 
			this->Name_Setting_Tab->Location = System::Drawing::Point(4, 22);
			this->Name_Setting_Tab->Name = L"Name_Setting_Tab";
			this->Name_Setting_Tab->Padding = System::Windows::Forms::Padding(3);
			this->Name_Setting_Tab->Size = System::Drawing::Size(1069, 507);
			this->Name_Setting_Tab->TabIndex = 4;
			this->Name_Setting_Tab->Text = L"Define Object Descriptors";
			this->Name_Setting_Tab->UseVisualStyleBackColor = true;
			// 
			// Geo_Attribute_Setting_Tab
			// 
			this->Geo_Attribute_Setting_Tab->Location = System::Drawing::Point(4, 22);
			this->Geo_Attribute_Setting_Tab->Name = L"Geo_Attribute_Setting_Tab";
			this->Geo_Attribute_Setting_Tab->Padding = System::Windows::Forms::Padding(3);
			this->Geo_Attribute_Setting_Tab->Size = System::Drawing::Size(1069, 507);
			this->Geo_Attribute_Setting_Tab->TabIndex = 5;
			this->Geo_Attribute_Setting_Tab->Text = L"Define Geometrical Attributes";
			this->Geo_Attribute_Setting_Tab->UseVisualStyleBackColor = true;
			// 
			// Size_Select_Combo_Box
			// 
			this->Size_Select_Combo_Box->FormattingEnabled = true;
			this->Size_Select_Combo_Box->Items->AddRange(gcnew cli::array< System::Object^  >(5) {L"Extra Small", L"Small", L"Medium", 
				L"Large", L"Extra Large"});
			this->Size_Select_Combo_Box->Location = System::Drawing::Point(51, 227);
			this->Size_Select_Combo_Box->Name = L"Size_Select_Combo_Box";
			this->Size_Select_Combo_Box->Size = System::Drawing::Size(121, 21);
			this->Size_Select_Combo_Box->TabIndex = 0;
			// 
			// Select_Size_Button
			// 
			this->Select_Size_Button->Location = System::Drawing::Point(894, 246);
			this->Select_Size_Button->Name = L"Select_Size_Button";
			this->Select_Size_Button->Size = System::Drawing::Size(121, 42);
			this->Select_Size_Button->TabIndex = 1;
			this->Select_Size_Button->Text = L"Save Size Changes";
			this->Select_Size_Button->UseVisualStyleBackColor = true;
			// 
			// Width_LB_Box
			// 
			this->Width_LB_Box->Location = System::Drawing::Point(396, 228);
			this->Width_LB_Box->Name = L"Width_LB_Box";
			this->Width_LB_Box->Size = System::Drawing::Size(121, 20);
			this->Width_LB_Box->TabIndex = 2;
			// 
			// Height_LB_Box
			// 
			this->Height_LB_Box->Location = System::Drawing::Point(396, 286);
			this->Height_LB_Box->Name = L"Height_LB_Box";
			this->Height_LB_Box->Size = System::Drawing::Size(121, 20);
			this->Height_LB_Box->TabIndex = 3;
			// 
			// Width_UB_Text_Box
			// 
			this->Width_UB_Text_Box->Location = System::Drawing::Point(564, 228);
			this->Width_UB_Text_Box->Name = L"Width_UB_Text_Box";
			this->Width_UB_Text_Box->Size = System::Drawing::Size(121, 20);
			this->Width_UB_Text_Box->TabIndex = 4;
			// 
			// Height_UB_Text_Box
			// 
			this->Height_UB_Text_Box->Location = System::Drawing::Point(564, 286);
			this->Height_UB_Text_Box->Name = L"Height_UB_Text_Box";
			this->Height_UB_Text_Box->Size = System::Drawing::Size(121, 20);
			this->Height_UB_Text_Box->TabIndex = 5;
			// 
			// Size_LB_Label
			// 
			this->Size_LB_Label->AutoSize = true;
			this->Size_LB_Label->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 12, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
				static_cast<System::Byte>(0)));
			this->Size_LB_Label->Location = System::Drawing::Point(403, 177);
			this->Size_LB_Label->Name = L"Size_LB_Label";
			this->Size_LB_Label->Size = System::Drawing::Size(114, 20);
			this->Size_LB_Label->TabIndex = 6;
			this->Size_LB_Label->Text = L"Lower Bound";
			// 
			// Size_UB_Label
			// 
			this->Size_UB_Label->AutoSize = true;
			this->Size_UB_Label->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 12, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
				static_cast<System::Byte>(0)));
			this->Size_UB_Label->Location = System::Drawing::Point(571, 177);
			this->Size_UB_Label->Name = L"Size_UB_Label";
			this->Size_UB_Label->Size = System::Drawing::Size(115, 20);
			this->Size_UB_Label->TabIndex = 8;
			this->Size_UB_Label->Text = L"Upper Bound";
			// 
			// Width_Label
			// 
			this->Width_Label->AutoSize = true;
			this->Width_Label->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 12, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
				static_cast<System::Byte>(0)));
			this->Width_Label->Location = System::Drawing::Point(257, 226);
			this->Width_Label->Name = L"Width_Label";
			this->Width_Label->Size = System::Drawing::Size(55, 20);
			this->Width_Label->TabIndex = 9;
			this->Width_Label->Text = L"Width";
			// 
			// Height_Label
			// 
			this->Height_Label->AutoSize = true;
			this->Height_Label->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 12, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
				static_cast<System::Byte>(0)));
			this->Height_Label->Location = System::Drawing::Point(257, 284);
			this->Height_Label->Name = L"Height_Label";
			this->Height_Label->Size = System::Drawing::Size(62, 20);
			this->Height_Label->TabIndex = 10;
			this->Height_Label->Text = L"Height";
			// 
			// Save_Color_Space_Button
			// 
			this->Save_Color_Space_Button->Location = System::Drawing::Point(838, 269);
			this->Save_Color_Space_Button->Name = L"Save_Color_Space_Button";
			this->Save_Color_Space_Button->Size = System::Drawing::Size(138, 51);
			this->Save_Color_Space_Button->TabIndex = 111;
			this->Save_Color_Space_Button->Text = L"Save Color Space";
			this->Save_Color_Space_Button->UseVisualStyleBackColor = true;
			// 
			// Algorithm_Combo_Box
			// 
			this->Algorithm_Combo_Box->FormattingEnabled = true;
			this->Algorithm_Combo_Box->Items->AddRange(gcnew cli::array< System::Object^  >(3) {L"Algorithm 1", L"Algorithm 2", L"Algorithm 3"});
			this->Algorithm_Combo_Box->Location = System::Drawing::Point(436, 345);
			this->Algorithm_Combo_Box->Name = L"Algorithm_Combo_Box";
			this->Algorithm_Combo_Box->Size = System::Drawing::Size(217, 21);
			this->Algorithm_Combo_Box->TabIndex = 5;
			// 
			// Form1
			// 
			this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
			this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
			this->ClientSize = System::Drawing::Size(1076, 533);
			this->Controls->Add(this->Tab_Controller);
			this->Name = L"Form1";
			this->Text = L"Digital Image";
			this->Input_Text_Tab->ResumeLayout(false);
			this->Input_Text_Tab->PerformLayout();
			this->Define_Parameters_Tab->ResumeLayout(false);
			this->Define_Parameters_Tab->PerformLayout();
			this->Color_Space_Tab->ResumeLayout(false);
			this->Color_Space_Tab->PerformLayout();
			this->Tab_Controller->ResumeLayout(false);
			this->ResumeLayout(false);
 
		}
#pragma endregion
 
 
			// Actions to buttons, etc. 
			
			private: System::Void Red_Click(System::Object^  sender, System::EventArgs^  e) {
 
				MessageBox::Show( "Select the lower bound color. \nClick define custom color on subsequent screen for color spectrum", "Define Lower Bound",
				MessageBoxButtons::OK, MessageBoxIcon::Exclamation );		 
						 
				// Display color spectrum
 
				 this->colorDialog1->ShowDialog();
 
 				// Write the lower bound red color value to the screen
 
				this->Red_L_box_LB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.R)->ToString(nullptr);
 
				 // Write the lower bound green color value to the screen
 
				this->Red_A_box_LB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.G)->ToString(nullptr);
 
				 // Write the lower bound blue color value to the screen
 
				 this->Red_B_box_LB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.B)->ToString(nullptr);
 
 
				 MessageBox::Show( "Select the upper bound color. \nClick define custom color on subsequent screen for color spectrum", "Define Upper Bound",
				 MessageBoxButtons::OK, MessageBoxIcon::Exclamation );
 
 				 // Display color spectrum
 
				 this->colorDialog1->ShowDialog();
 
  				// Write the upper bound red color value to the screen
 
				this->Red_L_box_UB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.R)->ToString(nullptr);
 
				 // Write the upper bound green color value to the screen
 
				this->Red_A_box_UB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.G)->ToString(nullptr);
 
				 // Write the upper bound blue color value to the screen
 
				 this->Red_B_box_UB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.B)->ToString(nullptr);
 
 
			 }
 
	 		private: System::Void Green_Click(System::Object^  sender, System::EventArgs^  e) {
 
				MessageBox::Show( "Select the lower bound color. \nClick define custom color on subsequent screen for color spectrum", "Define Lower Bound",
				MessageBoxButtons::OK, MessageBoxIcon::Exclamation );
 
				 // Display color spectrum
 
				 this->colorDialog1->ShowDialog();
 
 				// Write the lower bound red color value to the screen
 
				this->Green_L_box_LB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.R)->ToString(nullptr);
 
				 // Write the lower bound green color value to the screen
 
				this->Green_A_box_LB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.G)->ToString(nullptr);
 
				 // Write the lower bound blue color value to the screen
 
				 this->Green_B_box_LB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.B)->ToString(nullptr);
 
 				 MessageBox::Show( "Select the upper bound color. \nClick define custom color on subsequent screen for color spectrum", "Define Upper Bound",
				 MessageBoxButtons::OK, MessageBoxIcon::Exclamation );
 
				 // Display color spectrum
 
				 this->colorDialog1->ShowDialog();
 
  				// Write the upper bound red color value to the screen
 
				this->Green_L_box_UB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.R)->ToString(nullptr);
 
				 // Write the upper bound green color value to the screen
 
				this->Green_A_box_UB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.G)->ToString(nullptr);
 
				 // Write the upper bound blue color value to the screen
 
				 this->Green_B_box_UB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.B)->ToString(nullptr);
 
 
			 }
 
 			private: System::Void Blue_Click(System::Object^  sender, System::EventArgs^  e) {
 
 				MessageBox::Show( "Select the lower bound color. \nClick define custom color on subsequent screen for color spectrum", "Define Lower Bound",
				MessageBoxButtons::OK, MessageBoxIcon::Exclamation );
 
				 // Display color spectrum
 
				 this->colorDialog1->ShowDialog();
 
 				// Write the lower bound red color value to the screen
 
				this->Blue_L_box_LB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.R)->ToString(nullptr);
 
				 // Write the lower bound green color value to the screen
 
				this->Blue_A_box_LB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.G)->ToString(nullptr);
 
				 // Write the lower bound blue color value to the screen
 
				 this->Blue_B_box_LB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.B)->ToString(nullptr);
 
  				 MessageBox::Show( "Select the upper bound color. \nClick define custom color on subsequent screen for color spectrum", "Define Upper Bound",
				 MessageBoxButtons::OK, MessageBoxIcon::Exclamation );
 
 				 // Display color spectrum
 
				 this->colorDialog1->ShowDialog();
 
  				// Write the upper bound red color value to the screen
 
				this->Blue_L_box_UB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.R)->ToString(nullptr);
 
				 // Write the upper bound green color value to the screen
 
				this->Blue_A_box_UB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.G)->ToString(nullptr);
 
				 // Write the upper bound blue color value to the screen
 
				 this->Blue_B_box_UB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.B)->ToString(nullptr);
 
 
 
			 }
 
 			private: System::Void Cyan_Click(System::Object^  sender, System::EventArgs^  e) {
 
  				MessageBox::Show( "Select the lower bound color. \nClick define custom color on subsequent screen for color spectrum", "Define Lower Bound",
				MessageBoxButtons::OK, MessageBoxIcon::Exclamation );
 
				 // Display color spectrum
 
				 this->colorDialog1->ShowDialog();
 
 				// Write the lower bound red color value to the screen
 
				this->Cyan_L_box_LB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.R)->ToString(nullptr);
 
				 // Write the lower bound green color value to the screen
 
				this->Cyan_A_box_LB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.G)->ToString(nullptr);
 
				 // Write the lower bound blue color value to the screen
 
				 this->Cyan_B_box_LB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.B)->ToString(nullptr);
 
   				 MessageBox::Show( "Select the upper bound color. \nClick define custom color on subsequent screen for color spectrum", "Define Upper Bound",
				 MessageBoxButtons::OK, MessageBoxIcon::Exclamation );
 
 				 // Display color spectrum
 
				 this->colorDialog1->ShowDialog();
 
  				// Write the upper bound red color value to the screen
 
				this->Cyan_L_box_UB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.R)->ToString(nullptr);
 
				 // Write the upper bound green color value to the screen
 
				this->Cyan_A_box_UB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.G)->ToString(nullptr);
 
				 // Write the upper bound blue color value to the screen
 
				 this->Cyan_B_box_UB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.B)->ToString(nullptr);
 
 
			 }
 
 			private: System::Void Yellow_Click(System::Object^  sender, System::EventArgs^  e) {
 
   				MessageBox::Show( "Select the lower bound color. \nClick define custom color on subsequent screen for color spectrum", "Define Lower Bound",
				MessageBoxButtons::OK, MessageBoxIcon::Exclamation );
 
				 // Display color spectrum
 
				 this->colorDialog1->ShowDialog();
 
 				// Write the lower bound red color value to the screen
 
				this->Yellow_L_box_LB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.R)->ToString(nullptr);
 
				 // Write the lower bound green color value to the screen
 
				this->Yellow_A_box_LB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.G)->ToString(nullptr);
 
				 // Write the lower bound blue color value to the screen
 
				 this->Yellow_B_box_LB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.B)->ToString(nullptr);
 
   				 MessageBox::Show( "Select the upper bound color. \nClick define custom color on subsequent screen for color spectrum", "Define Upper Bound",
				 MessageBoxButtons::OK, MessageBoxIcon::Exclamation );
 
 				 // Display color spectrum
 
				 this->colorDialog1->ShowDialog();
 
  				// Write the upper bound red color value to the screen
 
				this->Yellow_L_box_UB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.R)->ToString(nullptr);
 
				 // Write the upper bound green color value to the screen
 
				this->Yellow_A_box_UB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.G)->ToString(nullptr);
 
				 // Write the upper bound blue color value to the screen
 
				 this->Yellow_B_box_UB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.B)->ToString(nullptr);
 
 
			 }
 
  			private: System::Void Brown_Click(System::Object^  sender, System::EventArgs^  e) {
 
				MessageBox::Show( "Select the lower bound color. \nClick define custom color on subsequent screen for color spectrum", "Define Lower Bound",
				MessageBoxButtons::OK, MessageBoxIcon::Exclamation );
 
				 // Display color spectrum
 
				 this->colorDialog1->ShowDialog();
 
 				// Write the lower bound red color value to the screen
 
				this->Brown_L_box_LB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.R)->ToString(nullptr);
 
				 // Write the lower bound green color value to the screen
 
				this->Brown_A_box_LB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.G)->ToString(nullptr);
 
				 // Write the lower bound blue color value to the screen
 
				 this->Brown_B_box_LB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.B)->ToString(nullptr);
 
				 MessageBox::Show( "Select the upper bound color. \nClick define custom color on subsequent screen for color spectrum", "Define Upper Bound",
				 MessageBoxButtons::OK, MessageBoxIcon::Exclamation );
 
 				 // Display color spectrum
 
				 this->colorDialog1->ShowDialog();
 
  				// Write the upper bound red color value to the screen
 
				this->Brown_L_box_UB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.R)->ToString(nullptr);
 
				 // Write the upper bound green color value to the screen
 
				this->Brown_A_box_UB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.G)->ToString(nullptr);
 
				 // Write the upper bound blue color value to the screen
 
				 this->Brown_B_box_UB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.B)->ToString(nullptr);
 
 
			 }
 
  			private: System::Void Orange_Click(System::Object^  sender, System::EventArgs^  e) {
 
 				MessageBox::Show( "Select the lower bound color. \nClick define custom color on subsequent screen for color spectrum", "Define Lower Bound",
				MessageBoxButtons::OK, MessageBoxIcon::Exclamation );
 
				 // Display color spectrum
 
				 this->colorDialog1->ShowDialog();
 
 				// Write the lower bound red color value to the screen
 
				this->Orange_L_box_LB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.R)->ToString(nullptr);
 
				 // Write the lower bound green color value to the screen
 
				this->Orange_A_box_LB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.G)->ToString(nullptr);
 
				 // Write the lower bound blue color value to the screen
 
				 this->Orange_B_box_LB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.B)->ToString(nullptr);
 
 				 MessageBox::Show( "Select the upper bound color. \nClick define custom color on subsequent screen for color spectrum", "Define Upper Bound",
				 MessageBoxButtons::OK, MessageBoxIcon::Exclamation );
 
 				 // Display color spectrum
 
				 this->colorDialog1->ShowDialog();
 
  				// Write the upper bound red color value to the screen
 
				this->Orange_L_box_UB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.R)->ToString(nullptr);
 
				 // Write the upper bound green color value to the screen
 
				this->Orange_A_box_UB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.G)->ToString(nullptr);
 
				 // Write the upper bound blue color value to the screen
 
				 this->Orange_B_box_UB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.B)->ToString(nullptr);
 
 
			 }
 
  			private: System::Void Purple_Click(System::Object^  sender, System::EventArgs^  e) {
 
  				MessageBox::Show( "Select the lower bound color. \nClick define custom color on subsequent screen for color spectrum", "Define Lower Bound",
				MessageBoxButtons::OK, MessageBoxIcon::Exclamation );
 
				 // Display color spectrum
 
				 this->colorDialog1->ShowDialog();
 
 				// Write the lower bound red color value to the screen
 
				this->Purple_L_box_LB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.R)->ToString(nullptr);
 
				 // Write the lower bound green color value to the screen
 
				this->Purple_A_box_LB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.G)->ToString(nullptr);
 
				 // Write the lower bound blue color value to the screen
 
				 this->Purple_B_box_LB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.B)->ToString(nullptr);
 
  				 MessageBox::Show( "Select the upper bound color. \nClick define custom color on subsequent screen for color spectrum", "Define Upper Bound",
				 MessageBoxButtons::OK, MessageBoxIcon::Exclamation );
 
 				 // Display color spectrum
 
				 this->colorDialog1->ShowDialog();
 
  				// Write the upper bound red color value to the screen
 
				this->Purple_L_box_UB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.R)->ToString(nullptr);
 
				 // Write the upper bound green color value to the screen
 
				this->Purple_A_box_UB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.G)->ToString(nullptr);
 
				 // Write the upper bound blue color value to the screen
 
				 this->Purple_B_box_UB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.B)->ToString(nullptr);
 
 
			 }
 
  			private: System::Void Pink_Click(System::Object^  sender, System::EventArgs^  e) {
 
   				MessageBox::Show( "Select the lower bound color. \nClick define custom color on subsequent screen for color spectrum", "Define Lower Bound",
				MessageBoxButtons::OK, MessageBoxIcon::Exclamation );
 
				 // Display color spectrum
 
				 this->colorDialog1->ShowDialog();
 
 				// Write the lower bound red color value to the screen
 
				this->Pink_L_box_LB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.R)->ToString(nullptr);
 
				 // Write the lower bound green color value to the screen
 
				this->Pink_A_box_LB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.G)->ToString(nullptr);
 
				 // Write the lower bound blue color value to the screen
 
				 this->Pink_B_box_LB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.B)->ToString(nullptr);
 
   				 MessageBox::Show( "Select the upper bound color. \nClick define custom color on subsequent screen for color spectrum", "Define Upper Bound",
				 MessageBoxButtons::OK, MessageBoxIcon::Exclamation );
 
 				 // Display color spectrum
 
				 this->colorDialog1->ShowDialog();
 
  				// Write the upper bound red color value to the screen
 
				this->Pink_L_box_UB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.R)->ToString(nullptr);
 
				 // Write the upper bound green color value to the screen
 
				this->Pink_A_box_UB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.G)->ToString(nullptr);
 
				 // Write the upper bound blue color value to the screen
 
				 this->Pink_B_box_UB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.B)->ToString(nullptr);
 
 
			 }
 
  			private: System::Void White_Click(System::Object^  sender, System::EventArgs^  e) {
 
				MessageBox::Show( "Select the lower bound color. \nClick define custom color on subsequent screen for color spectrum", "Define Lower Bound",
				MessageBoxButtons::OK, MessageBoxIcon::Exclamation );
 
				 // Display color spectrum
 
				 this->colorDialog1->ShowDialog();
 
 				// Write the lower bound red color value to the screen
 
				this->White_L_box_LB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.R)->ToString(nullptr);
 
				 // Write the lower bound green color value to the screen
 
				this->White_A_box_LB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.G)->ToString(nullptr);
 
				 // Write the lower bound blue color value to the screen
 
				 this->White_B_box_LB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.B)->ToString(nullptr);
 
				 MessageBox::Show( "Select the upper bound color. \nClick define custom color on subsequent screen for color spectrum", "Define Upper Bound",
				 MessageBoxButtons::OK, MessageBoxIcon::Exclamation );
 
 				 // Display color spectrum
 
				 this->colorDialog1->ShowDialog();
 
  				// Write the upper bound red color value to the screen
 
				this->White_L_box_UB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.R)->ToString(nullptr);
 
				 // Write the upper bound green color value to the screen
 
				this->White_A_box_UB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.G)->ToString(nullptr);
 
				 // Write the upper bound blue color value to the screen
 
				 this->White_B_box_UB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.B)->ToString(nullptr);
 
 
			 }
  			private: System::Void Black_Click(System::Object^  sender, System::EventArgs^  e) {
 
 				MessageBox::Show( "Select the lower bound color. \nClick define custom color on subsequent screen for color spectrum", "Define Lower Bound",
				MessageBoxButtons::OK, MessageBoxIcon::Exclamation );
 
				 // Display color spectrum
 
				 this->colorDialog1->ShowDialog();
 
 				// Write the lower bound red color value to the screen
 
				this->Black_L_box_LB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.R)->ToString(nullptr);
 
				 // Write the lower bound green color value to the screen
 
				this->Black_A_box_LB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.G)->ToString(nullptr);
 
				 // Write the lower bound blue color value to the screen
 
				 this->Black_B_box_LB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.B)->ToString(nullptr);
 
 				 MessageBox::Show( "Select the upper bound color. \nClick define custom color on subsequent screen for color spectrum", "Define Upper Bound",
				 MessageBoxButtons::OK, MessageBoxIcon::Exclamation );
 
 				 // Display color spectrum
 
				 this->colorDialog1->ShowDialog();
 
  				// Write the upper bound red color value to the screen
 
				this->Black_L_box_UB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.R)->ToString(nullptr);
 
				 // Write the upper bound green color value to the screen
 
				this->Black_A_box_UB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.G)->ToString(nullptr);
 
				 // Write the upper bound blue color value to the screen
 
				 this->Black_B_box_UB->Text = safe_cast<IConvertible ^>(colorDialog1->Color.B)->ToString(nullptr);
 
			 }
 
 
private: System::Void Object_Describer_Button_Click(System::Object^  sender, System::EventArgs^  e) {
 
			 // Check to see if any description was entered
 
			 if(Description_TextBox->Text == "")
			 {
				// No description entered, notify user
 
			 MessageBox::Show( "You must enter a description.", "Description Error",
             MessageBoxButtons::OK, MessageBoxIcon::Exclamation );
 
			 }
 
			 else{
 
				 // Confirm the description the user entered
 
		     MessageBox::Show( "The description of the object is as follows: \n" + Description_TextBox->Text + "\nPlease select algorithm from drop-down menu to search for best match", "Description Made",
             MessageBoxButtons::OK, MessageBoxIcon::Exclamation );
 
				// Show the matches of descriptions with the ones found in the XML document
 
 
 
			 }
 
 
 
	}
 
private: System::Void Clear_Description_Click(System::Object^  sender, System::EventArgs^  e) {
 
			// Clear description field and notify user
 
			Description_TextBox->Text = "";
			MessageBox::Show( "You have cleared the object description, please enter another description in order to find the object", "Description Cleared",
            MessageBoxButtons::OK, MessageBoxIcon::Exclamation );
			
 
 
	}
 
private: System::Void Best_Match_Button_Click(System::Object^  sender, System::EventArgs^  e) {
 
			// Check to see if anything was entered in description box
 
			 if(Description_TextBox->Text == "")
			 {
 
				 // Nothing entered, notify the user
 
			 MessageBox::Show( "You must enter a description.", "Description Error",
             MessageBoxButtons::OK, MessageBoxIcon::Exclamation );
 
			 }
 
			 else{
 
				 //  Check to see if an algorithm was selected
 
				 if(Algorithm_Combo_Box->SelectedIndex == -1)
				 {
 
					 // No algorithm selected, notify user
 
					MessageBox::Show( "You must select an algorithm", "Error in Algorithm Selection",
					MessageBoxButtons::OK, MessageBoxIcon::Exclamation );
 
				 }
 
				 else
				 {
 
					// Description and algorithm selected, run digital image processing algorithm
 
					// Notify user
				 
					MessageBox::Show( "You have used the " + Algorithm_Combo_Box->SelectedItem->ToString() + " to find the best match of the object.\nProceed to the Image Display tab to view output results.", "Output Generated",
					MessageBoxButtons::OK, MessageBoxIcon::Exclamation );
 
				 }
 
			 }
 
 
	}
 
 
 
XYZ RGB_2_XYZ(const RGB &rgb)
{
    float var_R = (float)rgb.r / 255.0f;        //R from 0 to 255
    float var_G = (float)rgb.g / 255.0f;        //G from 0 to 255
    float var_B = (float)rgb.b / 255.0f;        //B from 0 to 255
 
    if ( var_R > 0.04045 ) 
    {
        var_R = powf( (var_R + 0.055f) / 1.055f, 2.4f);
    }
    else                   
    {
        var_R = var_R / 12.92f;
    }
    if ( var_G > 0.04045 ) 
    {
        var_G = powf( (var_G + 0.055f) / 1.055f, 2.4f);;
    }
    else                   
    {
        var_G = var_G / 12.92f;
    }
    if ( var_B > 0.04045 ) 
    {
        var_B = powf( (var_B + 0.055f) / 1.055f, 2.4f);
    }
    else                   
    {
        var_B = var_B / 12.92f;
    }
 
    var_R = var_R * 100.0f;
    var_G = var_G * 100.0f;
    var_B = var_B * 100.0f;
 
    XYZ ret;
    //Observer. = 2°, Illuminant = D65
    ret.x = var_R * 0.4124f + var_G * 0.3576f + var_B * 0.1805f;
    ret.y = var_R * 0.2126f + var_G * 0.7152f + var_B * 0.0722f;
    ret.z = var_R * 0.0193f + var_G * 0.1192f + var_B * 0.9505f;
 
    printf("[x y z]: [%f %f %f]\n", ret.x, ret.y, ret.z);
    return ret;
}
 
 
 
 
};
}
 

Open in new window

Here are the errors:

1>------ Build started: Project: DigitalImage, Configuration: Debug Win32 ------
1>Compiling...
1>DigitalImage.cpp
1>c:\users\dennis\desktop\gui_2\digitalimage\Form1.h(208) : error C2814: 'DigitalImage::Form1::RGB' : a native type cannot be nested within a managed type 'DigitalImage::Form1'
1>        c:\users\dennis\desktop\gui_2\digitalimage\Form1.h(20) : see declaration of 'DigitalImage::Form1'
1>c:\users\dennis\desktop\gui_2\digitalimage\Form1.h(209) : error C2814: 'DigitalImage::Form1::XYZ' : a native type cannot be nested within a managed type 'DigitalImage::Form1'
1>        c:\users\dennis\desktop\gui_2\digitalimage\Form1.h(20) : see declaration of 'DigitalImage::Form1'
1>Build log was saved at "file://c:\Users\dennis\Desktop\gui_2\DigitalImage\Debug\BuildLog.htm"
1>DigitalImage - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
You use managed c++ ? Sounds like you declared the function inside another class, do it in global scope, outside of DigitalImage::Form1
Ok that compiled when I took it out of Form 1.
Last question regarding your code, I am new to c++, how can I declare a new variable of type RGB?
Can you give me a quick example?
I will be able to do the rest from there.
Thanks!
Dennis
ASKER CERTIFIED SOLUTION
Avatar of ikework
ikework
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
here are some possibilities, how to declare a variable of type RGB:
RGB a = {0, 0, 0}, b = {255, 255, 255}, c = {1, 99, 216};
 
or:
 
RGB d;
d.r = 13;
d.g = 1;
d.b = 42;

Open in new window

excellent. thank you!