How to display image that I already edit with "cv::Line" in Gui?



  • I have a program to simply draw line in mat image. I draw a line in it and when I display it error. This my algorithm that I already try:

    1. Load image use mat.read
    2. Draw line in image
    3. Convert image from bgr2rgb
    4. Convert mat image to Qimage
    5. Display qimage with Format_RGB888

    And it is not work. How I fix it?


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Can you show the code you are using ?
    What exactly do you expect ?
    What exactly do you get ?


Log in to reply