[ptx] Re: Colour correction in PTmender,
pablo.dangelo at informatik.uni-ulm.de
pablo.dangelo at informatik.uni-ulm.de
Thu Jan 12 13:47:23 GMT 2006
Hi Daniel,
>
> Pablo> I'm I tried understand the code you checked in yesterday night, but I
> didn't
> Pablo> succeed. Unfortunately, the webpage doesn't contain details about
> this.. :(
>
>
> thanks Pablo, your explanation certainly helped. I have greatly
> improved the readability of the code, search for ComputeAdjustmentCurve.
>
> The good news is that, for 2 images, it correctly computes the
> correction curve. What it does not do, however, is to correctly
> compute the corrected histogram (RemapHistogram function).
Oh, that should actually be simpler than calculating the curve, I think.
One just needs to use the curve a lookup table, or?
init histDest with 0
for i=0..255
histDest[curve[i]] += histSrc[i];
end
> Also, would somebody please run the following script
> (http://w.cs.uvic.ca/~dmg/temp/Project2.txt) using Helmut's sample
> pictures (http://www.path.unimelb.edu.au/~dersch/cbcorrect/cb.html). I
> would greatly appreciate it. I only need the output Debug.txt.
I have attatched it (made with the original 2.6b1 PTStitcher & pano.dll on
Windows)
ciao
Pablo
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
-------------- next part --------------
Entering function "colourbrightness" with 2 images, nfix = 0
Quality before optimization:
Histogram 0 Images 0 1, 89572 Pixels: 735.771 437.427 341.12
Results of Optimization:
Image 0:
Red Channel: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255
Green Channel: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255
Blue Channel: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255
Image 1:
Red Channel: 0 0 0 0 0 0 0 0.229167 1 1.86111 2.44444 3.45313 4.47872 5.62857 6.35 7.24603 8.23718 9.29012 10.2431 11.1872 12.087 13 13.9295 14.9896 15.9454 16.8515 17.7556 18.6871 19.6291 20.6671 21.6568 22.6595 23.7284 24.7596 26.1999 28.0627 29.0085 30 30.8094 32.209 33.1987 34.2535 35.387 36.4136 37.5145 38.6148 39.6742 40.7671 41.8609 43.0347 44.0503 45.0503 46.0438 47.0982 48.0277 49 50.0769 51.1788 52.2638 53.3053 54.3171 55.2695 56.2961 57.2321 58.2742 59.2894 60.2256 61.1865 62.2024 63.2312 64.3538 65.4206 66.479 67.5293 68.546 69.607 70.3651 71.3342 72.3607 73.3289 74.1201 75.0701 76.0312 77 77.7807 78.5938 79.2439 80.0444 81 81.9482 82.8754 83.7437 84.3431 85.1801 86.0484 87 87.6267 88.6 89.3974 90.0585 91.0727 92 92.9302 93.697 94.4551 95.4524 96.2953 97.3933 98.4903 99.5145 100.631 101.872 103.08 104.054 105.059 106.071 107.144 108.066 109 110.044 111.148 112.119 113.2 114.25 115.205 116.171 117.127 118.14 119.291 120.26 121.165 122.083 123.207 124.135 125.174 126.123 127.098 128 128.868 130 130.86 131.779 132.967 134.037 135.25 136.372 137.466 138.592 139.667 140.798 142.204 143.681 144.734 145.839 147.262 148.44 149.616 150.483 151.563 152.494 153.227 154 155.11 156.158 157.045 158 158.847 159.606 160.304 161 161.631 162.306 163 163.95 164.997 165.674 166.004 167.031 168 168.522 169 169.973 170.677 171.419 172.198 173.086 174 174.985 175.847 176.892 177.963 178.746 179.772 180.828 182.018 183.101 184.124 185.277 186.326 187.516 188.645 189.79 191.371 192.81 194.667 196.805 199.519 202.628 206.516 209.393 210.971 211 211 211 211 212.112 215 215 215 215 215.303 218.378 219.655 220 220.312 221.885 222.516 223.606 225 225.714 227.357 229.947 232.2 235.81 239.611 241.615 242.4 243.909 245.238 246 247.3 248.222 249 249 250 251.333 252 253 253.3 254.705 255 255 255 255 255 255
Green Channel: 0 0.333333 0.666667 1 1.33333 1.66667 2 2.33333 2.66667 3 3.33333 3.66667 4 4.33333 4.66667 5 5.57143 6.14286 6.71429 7.28571 7.85714 8.42857 9 10.6667 12.3333 14.25 16.4 18.5 20 21.45 22.5294 23.5652 24.2647 25.451 26.44 27.0886 28 28.9503 29.9317 30.8901 31.8638 32.8612 33.798 34.9155 36.4007 38.316 39.0505 40 41.2599 42.4382 43.3788 44.3898 45.4885 46.4925 47.4686 48.4584 49.4546 50.3834 51.3679 52.3106 53.3128 54.317 55.2755 56.2536 57.2191 58.233 59.3255 60.3532 61.2982 62.2576 63.0548 64.1008 65.0396 66 66.9725 67.9213 68.8914 69.8172 70.6776 71.5452 72.5051 73.5237 74.4763 75.5235 76.6049 77.5917 78.5854 79.3885 80.2296 81.2425 82.177 83.1088 84 84.915 85.7695 86.6158 87.5972 88.6154 89.5241 90.5434 91.541 92.3581 93.207 94.1183 95.043 96 96.8826 97.8211 98.8915 99.7608 100.68 101.839 102.973 103.827 104.897 105.872 106.806 107.945 108.876 109.902 111 111.856 112.857 113.903 114.822 115.729 116.68 117.71 118.783 119.799 120.843 121.944 123.07 124.152 125.275 126.136 127.271 128.2 129.078 130.04 131 132 132.948 133.795 134.761 135.885 136.882 137.899 138.954 140.184 141.316 142.582 143.512 144.706 145.71 146.582 147.654 148.803 150.013 151.011 152.297 153.518 154.612 155.662 156.7 157.949 159.051 160.241 161.411 162.365 163.466 164.273 165.22 166.141 167.163 168.257 169.331 170.473 171.566 172.319 173.151 174.346 175.46 176.321 177.355 178.443 179.238 180 180.636 181.707 182.46 183.457 184.489 185.489 186.227 187.291 188.245 189.17 190 190.959 191.893 192.85 193.746 194.787 195.845 196.759 197.735 198.902 199.912 200.89 201.992 203.154 204.166 205.21 206.36 207.545 208.494 209.531 210.545 211.724 212.692 213.668 214.738 215.866 217.506 219.118 220.925 222.913 225.446 228.367 231.971 236.262 240.211 242.718 244.419 245.607 246.955 247.48 248 248 249 249 249.857 250 250.7 251 251 251.733 252 252 252 252 252 252 253.195 254.925
Blue Channel: 0 0 0 0 0 0.184211 1 1.70833 2.14286 3 3.95349 4.88776 5.96117 6.71756 7.61151 8.44444 9.29518 10.315 11.2796 12.1179 13.0485 14 14.9965 15.8121 16.6798 17.5 18.4442 19.428 20.3476 21.2103 22.2033 23.1225 24.08 25.4387 27.3144 28.3218 29 30.025 31.346 32 32.6095 34.2872 35.4084 36.0683 37.4045 38.6723 39.7071 40.7252 41.6826 42.7516 43.8171 44.7597 45.7207 46.7911 47.8475 48.6961 49.6646 50.7524 51.8675 52.8461 53.8399 54.857 56 56.9505 57.7436 58.7994 59.9295 60.8722 61.7645 62.8281 63.766 64.7839 65.8484 66.8375 67.8214 68.7555 69.7227 70.7421 71.6988 72.5988 73.6723 74.5662 75.4587 76.4774 77.4008 78.4137 79.4304 80.1964 81.1296 82 82.9847 83.5029 84.0356 85 85.8202 86.7798 87.6968 88.6514 89.5732 90.3 91.0992 92.1565 93 94 94.8537 95.8014 96.7757 97.4958 98.4874 99.3805 100.328 101.391 102.347 103 103.901 104.858 105.921 106.922 107.983 108.768 109.756 110.684 111.646 112.855 113.868 114.851 115.773 116.904 118.114 119.279 120.341 121.467 122.656 123.642 124.678 125.676 126.581 127.56 128.713 129.847 130.569 131.415 132.467 133.488 134.496 135.685 136.658 137.752 138.858 139.902 140.986 142.05 143.174 144.319 145.493 146.634 147.672 148.701 149.742 150.967 151.827 152.817 153.714 154.614 155.554 156.489 157.388 158 158.497 159.438 160.77 162.29 163.575 164.708 165.66 166.372 167.383 168.311 169.433 170.188 171.12 172.046 173.037 174 174.743 175.816 176.833 177.455 178.293 179.311 180.291 181 181.622 182.391 183.23 184.069 185 185.697 186.521 187.487 188.395 189.392 190.333 191.318 192.382 193.661 194.707 195.864 196.878 198.204 199.084 200 200.893 201.798 202.741 203.644 204.436 205.464 206.355 207.102 208.126 209.133 210.213 211.25 212.448 213.704 214.763 216.052 217.413 218.635 219.808 221.211 222.498 223.738 224.882 226.202 227.496 228.744 230.02 231.449 233.125 234.933 237.131 239.278 241.598 243.472 245.368 247.84 249.462 250.818 251 253.984 255 255 255 255
Quality after optimization:
Histogram 0 Images 0 1, 89572 Pixels: 54.3494 24.9525 65.5051
More information about the ptx
mailing list