LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Question about converting labview to visionpro CogImage8Grey

Currently, it is possible to read local images and convert them to CogImage8Grey format. There is a problem when converting the vision image.

The vision Image pixel data scan cannot be found .

 Thank you !!

0 Kudos
Message 1 of 8
(1,448 Views)

That doesn't make much sense to me.

 

You're reading a bitmap (successfully?).

 

Why convert it to CogImage8Grey if you want it in a IMAQ image?

 


@zyya5984514 wrote:

The vision Image pixel data scan cannot be found .


I don't know what that is.

 

You'd usually copy the data from one memory location to the other (the .NET image to the Vision image), or do pointer magic so the IMAQ image uses the pointer.

0 Kudos
Message 2 of 8
(1,383 Views)

Now I use labview to call visionro, and the image format of visionpro is CogImage8Grey, so I want to convert the labview vision image to bitmap, which is then converted to CogImage8Grey format. Now the problem appears in the conversion from labview vision image to bitmap, do you have any good way to help me 。thank you !!

0 Kudos
Message 3 of 8
(1,380 Views)

I found Bitmap Pointer to LV_Image on the ni official website, but I tried to switch from LV_Image to Bitmap Pointer and failed6U{0UZBJY)[1EMA]60PQZG7.pngZK(ACQ7LZ7N_D)Y3Z049R8Y.png

0 Kudos
Message 4 of 8
(1,378 Views)

已解决

0 Kudos
Message 5 of 8
(1,356 Views)

@zyya5984514 wrote:

已解决


It could help someone to post the solution.

 

It would help everyone if you marked a post as solution.

0 Kudos
Message 6 of 8
(1,285 Views)

Hi ,

 

We are also trying to convert labview image to cog8grey image. But no solution found.

If anyone found the solution post, it could help us!!

 

0 Kudos
Message 7 of 8
(835 Views)

If you have VDM (vision development module), there is a vi in it which give you a reference similar to scan0.

IMAQ GetImagePixelPtr VI 

 

 

 

George Zou
0 Kudos
Message 8 of 8
(815 Views)