2016-07-29 05:12:32 -0600 | received badge | ● Enthusiast |
2016-07-26 09:28:15 -0600 | commented answer | How can I perform arithmetic operations with pixel Thank you so much, it solves my main goal!! |
2016-07-26 09:27:15 -0600 | received badge | ● Supporter (source) |
2016-07-26 09:27:11 -0600 | received badge | ● Scholar (source) |
2016-07-22 04:27:36 -0600 | commented answer | How can I perform arithmetic operations with pixel Thanks on the notes! Still can't seem to write the modified images... Is there anything more for me to correct? I have no 'error' message but still nothing happens |
2016-07-21 10:56:13 -0600 | commented answer | How can I perform arithmetic operations with pixel That is only if I let default options on imread. If I load it unchanged the order will still be RGB, right? |
2016-07-21 10:11:43 -0600 | commented answer | How can I perform arithmetic operations with pixel Note taken on the headers (must have learnt using an old tutorial...). Regarding the question itself, I now get the written images all black, any suggestions on that? Thanks for the tips and help! |
2016-07-21 10:10:30 -0600 | received badge | ● Editor (source) |
2016-07-21 09:47:55 -0600 | asked a question | How can I perform arithmetic operations with pixel I have a set of 70 RGB images (argc=71). I wanted to change pixel values according to these formulas: l1 = (R-G)^2/((R-G)^2 + (R-B)^2 + (G-B)^2); l2 = (R-B)^2/((R-G)^2 + (R-B)^2 + (G-B)^2); l3 = (R-G)^2/((G-B)^2 + (R-B)^2 + (G-B)^2); And then store the new images. The code I tried using c++ is below but I keep getting this error: SetPixels(99556,0x7fff76450000) malloc: * error for object 0x10a9ce000: pointer being freed was not allocated * set a breakpoint in malloc_error_break to debug Can anyone help me solve this matter? Thanks in advance! |