Histogram Equalization

void equalizeHist(InputArray src, OutputArray dst)
Parameters:
  • src – Source 8-bit single channel image.
  • dst – Destination image of the same size and type as src .

Example:

----------
#include "opencv2/core/core.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "iostream"

using namespace cv;
using namespace std;

int main( )
{
 Mat src1;
 src1 = imread("lena.jpg", CV_LOAD_IMAGE_COLOR);
 
 Mat gray, dst;

 // convert to gray
 cvtColor(src1, gray, CV_BGR2GRAY);
 namedWindow( "Original image", CV_WINDOW_AUTOSIZE );
 imshow( "Original image", gray );

 // hisogram equalization
 equalizeHist( gray, dst );

 namedWindow("image", CV_WINDOW_AUTOSIZE);
 imshow("image", dst);

 waitKey(0);                                       
 return 0;
}
----------

Result:


5 comments:

  1. Compre documentos en línea, documentos originales y registrados.
    Acerca de Permisodeespana, algunos dicen que somos los solucionadores de problemas, mientras que otros se refieren a nosotros como vendedores de soluciones. Contamos con cientos de clientes satisfechos a nivel mundial. Hacemos documentos falsos autorizados y aprobados como Permiso de Residencia Español, DNI, Pasaporte Español y Licencia de Conducir Española. Somos los fabricantes y proveedores de primer nivel de estos documentos, reconocidos a nivel mundial.

    Comprar permiso de residencia,
    permiso de residenciareal y falso en línea,
    Compre licencia de conducir en línea,
    Compre una licencia de conducir española falsa en línea,
    Comprar tarjeta de identificación,
    Licencia de conducir real y falsa,
    Compre pasaporte real en línea,

    Visit Here fpr more information. :- https://permisodeespana.com/licencia-de-conducir-espanola/
    Address: 56 Guild Street, London, EC4A 3WU (UK)
    Email: contact@permisodeespana.com
    WhatsApp: +443455280186

    ReplyDelete
  2. Plumbing & HVAC Services San Diego
    Air Star Heating guarantees reliability and quality for all equipment and services
    Air Star Heating is specializing in providing top-quality heating, ventilating, air conditioning, and plumbing services to our customers and clients.
    Our company is leading the market right now. By using our seamless and huge array of services. Our customers can now have the privilege of taking benefit from our services very easily and swiftly. To cope up with the desires and needs of our clients we have built an excellent reputation. We are already having a huge list of satisfied customers that seem to be very pleased with our services.

    Plumbing & HVAC Services in San Diego. Call now (858) 900-9977 ✓Licensed & Insured ✓Certified Experts ✓Same Day Appointment ✓Original Parts Only ✓Warranty On Every Job.
    Visit:- https://airstarheating.com

    ReplyDelete
  3. تحديد الاحتياجات الشخصية
    قبل البدء باختيار نوع الأثاث وتصميمه وألوانه والدخول في هذه التفاصيل، يجب تحديد الاحتياجات الشخصية لكلّ مكان في المنزل، فعلى سبيل المثال اختيار أثاث لغرفة نوم لشخصين يختلف عن اختيار أثاث لغرفة نوم لشخص واحد، كما يعتمد اختيار الأثاث بشكل كبير على الأشخاص وطبيعة عملهم وحالتهم الاجتماعية، مثل حاجة الطالب الجامعي إلى مكتب دراسي في غرفة نومه، وحاجة بعض الموظفين إلى مكتب للعمل في المنزل خاصةً الأشخاص الذين يقومون بأعمال مكتبية، ويُمكن تَخيل قضاء يوم كامل في المكان الذي يُراد اختيار أثاث له وحصر الأثاث اللازم وتحديد القطع اللازمة بشكلٍ دقيق.
    نجار بالرياض
    شركة تركيب اثاث ايكيا بالرياض
    فني دش بالرياض
    نجار فك تركيب غرف نوم بالرياض
    شركة تركيب ستائر بالرياض

    ReplyDelete