Jump to content

Change the Background (Rotate Func.)


Recommended Posts

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

post-28271-0-43640500-1354536265.png

Link to comment
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?

Link to comment

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 :lightbulb:.

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...

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.