LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Image processing

Solved!
Go to solution

how to connect this broken line using image processing? I want to convert image 1 in image 2. image1image1image2image2

I have attached the vi and the images.

please help

thanks in advance.

0 Kudos
Message 1 of 13
(3,177 Views)
Solution
Accepted by topic author MAC08

Hi MAC,

 

without using IMAQ I would use this algorithm:

- get the image data as array of pixel color values

- process the array column-wise

- search for the line color in each column and keep the index of the found pixel

- after scanning all columns you can redraw the line using the found pixel coordinates and connect each pixel point by a line…

 

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 13
(3,144 Views)

i am trying to do so but not getting desired result can you provide me sample a sample vi.

0 Kudos
Message 3 of 13
(3,057 Views)

Hi MAC,

 

what have you tried?

Which result did you get?

Why don't you attach your VI with some useful image data?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 13
(3,048 Views)

i have attached the vi and image. i want to join these lines and find array of newly formed pixel values.

Download All
0 Kudos
Message 5 of 13
(3,043 Views)

Hi MAC,

 

you forgot to include some useful data in your VI!

 

Please run your VI to display an image and some values in the "Image Pixels (U8)" indicator.

Then stop the VI. (Why is there no stop button in the loop?)

Then Edit -> Set current values as default.

Then save the VI and attach it again…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 13
(3,038 Views)

Hi

I have made the changes as you suggested.

Regards

MAC

Download All
0 Kudos
Message 7 of 13
(3,029 Views)
Solution
Accepted by topic author MAC08

Hi MAC,

 

your VI still doesn't contain any data…

But you included that image, so I could play with it:

check.png

It's not perfect, but gives the requested plot…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 8 of 13
(3,022 Views)

hi GerdW,

i want to invert the graph. how i can do that? 

i need some suggestion.

best regards,

MAC

0 Kudos
Message 9 of 13
(2,947 Views)

Hi MAC,

 

please define the term "invert the graph"!

Do you want to exchange colors?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 10 of 13
(2,941 Views)