Type | Bug | Status | dismissed | Date | 12-May-2009 06:08 |
---|---|---|---|---|---|
Version | alpha 52 | Category | n/a | Submitted by | Steeve |
Platform | All | Severity | trivial | Priority | normal |
Summary | On Images, bitwise operations don't take in account index of images. |
---|---|
Description |
First explanation: Bitwise operations (or, xor, and) don't act at the current position of targeted images but always act on the whole content. Index of images are ignored. 2nd possibility: Index are taken in account, but when the tail of one image is pointed then the looping bitwise process jump at the head instead of stoping here. There is the same behaviour in the current R2 release, so why is it a bug ? Because in the old releases of R2 (1.3 for example) it was working fine without the need to copy skiped images before applying a bitwise operator on them. Doing a copy on a sub-part of an image bypass the problem but cause a needless memory overhead. |
Example code |
a: make image! reduce [2x2 red] b: make image! reduce [2x2 black] >> a and skip b 0x1 == make image! [2x2 #{ 0000000000000000000000 } #{ 00000000 }] The expected result is given by using a copy of the skiped image. >> a and copy skip b 0x1 == make image! [2x2 #{ 000000000000FF0000FF0000 } #{ 00000000 }] |
Assigned to | n/a | Fixed in | - | Last Update | 14-May-2009 20:00 |
---|
Comments | |
---|---|
(0000690)
BrianH 12-May-2009 19:13 |
Third possibility: Perhaps images don't (or shouldn't) have a series-like internal position in R3 anymore, like map! and bitset!. |
(0000710)
Carl 14-May-2009 04:26 |
Removed AND, OR, and XOR for images. They are not that useful as currently specified, especially with regard to alpha channel.
It may be that we need to provide a few powerful natives to manipulate image data directly. For now, use DRAW to modify images. |
(0000734)
Steeve 14-May-2009 20:00 |
Noooooooooo |
Date | User | Field | Action | Change |
---|---|---|---|---|
14-May-2009 20:00 | Steeve | Comment : 0000734 | Added | - |
14-May-2009 04:26 | carl | Status | Modified | reviewed => dismissed |
14-May-2009 04:26 | carl | Comment : 0000710 | Added | - |
12-May-2009 19:13 | BrianH | Comment : 0000690 | Added | - |
12-May-2009 19:11 | BrianH | Status | Modified | submitted => reviewed |
12-May-2009 06:14 | Steeve | Code | Modified | - |
12-May-2009 06:10 | Steeve | Summary | Modified | On Image!: bitwise operations don't take in account index of images. => On Images, bitwise operations don't take in account index of images. |
12-May-2009 06:10 | Steeve | Description | Modified | - |
12-May-2009 06:10 | Steeve | Code | Modified | - |
12-May-2009 06:08 | Steeve | Ticket | Added | - |