Monday 15 September 2014

c++ - imread from openCV makes the image darker -



c++ - imread from openCV makes the image darker -

i'm using opencv 2.4.9 , have problem images.

i have original imagem,

in c++ do,

cv::mat img = cv::imread(sourceimgpath, cv_load_image_unchanged); imshow("test", img); //or imwrite(path, img);

and imshow or imwrite next image,

so can see, it's darker , have no thought why happen. have tried flags imread same thing. can help?

thanks time. appreciate help.

wazhup

according imagemagick in srgb colourspace gamma of 0.4545. suspect not opencv expecting , gamma or colourspace correction maybe required. sorry, not post comment (rather answer) because big , formatting ridiculous. constructive , help lead solution you.

image: brdap.jpg format: jpeg (joint photographic experts grouping jfif format) mime type: image/jpeg class: directclass geometry: 600x400+0+0 units: undefined type: truecolor endianess: undefined colorspace: srgb depth: 8-bit channel depth: red: 8-bit green: 8-bit blue: 8-bit channel statistics: pixels: 240000 red: min: 0 (0) max: 255 (1) mean: 100.628 (0.39462) standard deviation: 52.5382 (0.206032) kurtosis: 0.337274 skewness: 0.482249 green: min: 0 (0) max: 255 (1) mean: 108.882 (0.426989) standard deviation: 55.0518 (0.215889) kurtosis: -0.330334 skewness: 0.193815 blue: min: 0 (0) max: 255 (1) mean: 128.997 (0.505872) standard deviation: 70.9162 (0.278103) kurtosis: -1.38343 skewness: -0.0647535 image statistics: overall: min: 0 (0) max: 255 (1) mean: 112.836 (0.442493) standard deviation: 60.0557 (0.235513) kurtosis: -0.536439 skewness: 0.289801 rendering intent: perceptual gamma: 0.454545 <--------------------- gamma chromaticity: reddish primary: (0.64,0.33) greenish primary: (0.3,0.6) bluish primary: (0.15,0.06) white point: (0.3127,0.329) background color: white border color: srgb(223,223,223) matte color: grey74 transparent color: black interlace: none intensity: undefined compose: on page geometry: 600x400+0+0 dispose: undefined iterations: 0 compression: jpeg quality: 99 orientation: undefined properties: date:create: 2014-10-14t22:03:59+01:00 date:modify: 2014-10-14t22:03:59+01:00 icc:copyright: copyright (c) eastman kodak company, 1999, rights reserved. icc:description: prophoto rgb icc:manufacturer: kodak icc:model: reference output medium metric(romm) jpeg:colorspace: 2 jpeg:sampling-factor: 1x1,1x1,1x1 signature: c436a68fe624fd471fcd3563b7dafa154ec4f17e784a448a2863a24856c70be6 profiles: profile-icc: 940 bytes artifacts: filename: brdap.jpg verbose: true tainted: false filesize: 210kb number pixels: 240k pixels per second: 24mb user time: 0.000u elapsed time: 0:01.009 version: imagemagick 6.8.9-7 q16 x86_64 2014-09-10 http://www.imagemagick.org

c++ image opencv

No comments:

Post a Comment