Prev: Performance Windows vs Linux
Next: error in my program
From: Dave on 31 May 2010 02:09 Hello, I have two images of the same type(PNG).I need to make them same interms of their gamma values and the characteristics I mentioned below. I used imfinfo() function two see their details. Say, my two images are img1 and img2.Both img1 and img2 are differed in the following properties. =>img1 RenderingIntent: 'perceptual' Chromaticities: [1x8 double] Gamma: 0.4545 =>img2 RenderingIntent: [] Chromaticities: [] Gamma: [] I mentioned only the characteristics I want to change. My intention is to change the img1's above characteristics equal to that of img2(to make all 3 characteristics of img1 as zero). I tried J = imadjust(I,[low_in; high_in],[low_out; high_out],gamma) function.But I didn't get the desired result.May be I didn't the understand the function quite well. Could any one help me to make img1's RenderingIntent,Chromaticities,Gamma values null or equal to img2's values. regards, Dave
From: ImageAnalyst on 31 May 2010 08:43 Dave: Mark Grundland's histogram matching method is the best I've seen: "Mark Grundland & Neil Dodgson, Color Histogram Specification by Histogram Warping" http://www.cl.cam.ac.uk/~mg290/Portfolio/ColorHistogramWarp.html Hopefully the link works again - it wasn't working just now. But it should do exactly what you want. Good luck, ImageAnalyst
|
Pages: 1 Prev: Performance Windows vs Linux Next: error in my program |