2 bytes/pixel to 4 bytes/pixel?

   2232   2   0
User Avatar
Member
4 posts
Joined: July 2008
Offline
(should be simple enough, but…)

have an image with red only & alpha: info = 2 bytes/pixel, 2 planes
C shows as simply “C” as opposed to “C {r g b}”

I'd like to cp red into green and blue; thought I could use Channel Copy COP but don't see color components in Target and Source so it needs to be processed.

I admit I can't get PRISMS (ICE) out of my head… ops:



To get around it I used the red only image to Multiply a white Color COP to boost up to 4 bytes/pixel and then used the Channel Copy COP. It seems more convenient for the Channel Copy COP to be able to do the cp straight out. It's not a huge deal of course but what do developers think?
Edited by - Sept. 15, 2010 17:02:20
User Avatar
Staff
5161 posts
Joined: July 2005
Online
Rename C to M with a Rename COP, then use Channel Copy with Target=C and Source=M. You can use a Delete COP afterward to delete the M plane if it you like (though it will cause no extra cooking or memory). There is currently no COP to promote planes to higher vector types.
User Avatar
Member
4 posts
Joined: July 2008
Offline
“twod”, your solution is much more elegant! I like it.

My thanks,
Russ
  • Quick Links