Biker777 Posted December 3, 2012 Report Share Posted December 3, 2012 Hi Communtiy, I have a problem, I will turn a Picture. The Background is always black. Now, i will change this black to an other color, which i read out from a picture. The problem is,that the function "getcolorpixel value" don't give me any value on the output "pixel value (U64)"....I get only a value on the output pixel value (U32)........but this output I can't handle with the rotate function please help me Quote Link to comment
crelf Posted December 3, 2012 Report Share Posted December 3, 2012 If you're only getting an output on the U32 terminal, that means the color depth of the image is 32bit. Quote Link to comment
machyaer Posted December 4, 2012 Report Share Posted December 4, 2012 Hello everybody, I would like to add something to this thread: is there a way to let the background transparent in the rotate function? greatings Max Quote Link to comment
crelf Posted December 8, 2012 Report Share Posted December 8, 2012 is there a way to let the background transparent in the rotate function? Not that I know of - the color doesn't use the alpha bytes, so I think you're out of luck. That said, I can't imagine when I would do that in a machine vision context - what are you trying to do? Quote Link to comment
machyaer Posted December 10, 2012 Report Share Posted December 10, 2012 Thanks crelf, I'm not in a machine vision context, I need to realize some custom indicators and I made them superimposing an image to an existent indicator and using the rotate image block. Just it should be better using a top image with a transparent background... Max Quote Link to comment
MikaelH Posted December 10, 2012 Report Share Posted December 10, 2012 If you use a PNG image you can get nice alpha-transparency on your front panel. Quote Link to comment
machyaer Posted December 10, 2012 Report Share Posted December 10, 2012 I triedd with as PNG image and transparent background, but at the output of the rotation VI the background is black... there something wrong in my actions? Max example.vi Quote Link to comment
ShaunR Posted December 10, 2012 Report Share Posted December 10, 2012 I triedd with as PNG image and transparent background, but at the output of the rotation VI the background is black... there something wrong in my actions? Max example.vi Nope. Nothing wrong. The ""unflatten pixmap" strips the alpha-channel and coerces to 24 bit. I suggest you use the rather excellent "BitMan" package in the CR. Quote Link to comment
machyaer Posted December 11, 2012 Report Share Posted December 11, 2012 Hey guys... I was sure there were a better solution that mine... I will offer you a drink Max Quote Link to comment
tnt Posted December 11, 2012 Report Share Posted December 11, 2012 Hi Guys, almost 2 years ago I have build a rotate which included the rotation of transparant images. After reading the 'image data' from a (png-)file you get a 24-bit image together with the mask containing the transparency information . See the attached vi (LV 8.5.1) Rotate Transparent Image (24bit).vi I think this contains everything you (and hopefully also others) need to do get this done in pure G. Good luck... Quote Link to comment
machyaer Posted December 11, 2012 Report Share Posted December 11, 2012 I love you all... :thumbup1: another drink for you :beer_mug: Thanks Max Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.