Search code examples
imageimage-processingcomputer-visionoctaveimshow

Octave display low brightness images


I using graphics_toolkit('gnuplot') for Octave.

Here is the original image: enter image description here

However, when I use imshow, the image seems to be darker: image = imread('Lenna.png') imshow(image)

imshow Image here

The gray version is working well: pkg load image gray = rgb2gray(image) imshow(gray)

gray image

What can I do to fix the imshow problem?


Solution

  • I solve my problem by changing graphics toolkit to qt:

    graphics_toolkit('qt')
    

    And you should use octave or octave --no-gui instead of octave-cli because octave-cli doesn't link to qt.