For friends today I will tell you how to use lab view for image processing.
For that purpose you have to install.
Reason and motion toolbox to your left.
You.
So in this, as you see on the block diagram window and functional palette, I have within motion toolbox
as you see over here.
This is my vision in motion.
So I just locate over here for image processing.
I just need this one within utility and image processing toolbox.
Okay.
If I go to our front panel window over here, also, you can find out the reason tool box.
As you see over here, this is a reason tool for the image processing.
I'll just go to our diagram window over here.
First we have to save our image.
So let's go to.
Image reason utilities, image management or here you can find out I make you create.
It is just like other like in the data acquisition case, we just create a channel.
So over here, create a.
Image.
Okay, so over here to save an image, you have to just create a constant.
So let's say my input image name is my name.
Salim.
And over here you can select the type or here you can find out like gray unsigned eight X ranges to
raise to eight that is maximum to five five then greyscale integer 16 and other formats also available.
I just use in this case create scale view eight unsigned integer state.
Okay, so next I have to read five.
So for the read file I just go back in the files or here you can.
Find out.
I make you read.
Why do you have to just drag and drop over here?
So connect new image to the image, as you see.
And over here, you have to create a path.
So to create a path.
I just go to strings and file control path.
So I just name it input.
So just to go back, connect this.
So it will take the part of image.
And over here, this is the used file part.
Image type.
So create a constant right now.
Just make it true.
So next in this, I just use a classic image to display the image.
So just go back over here in the vision toolbox you can find out image display classic.
I just put it over here and this is my real image, so I just make it real.
Okay, so more here, I just go back and connect it to the.
Image.
So go back.
Select the image right now in the pictures or here, this is my image.
I just select the part.
So as you see and when I hit on run button you can check it is Zoom.
So I just zoom.
So as you see over here, I got the image.
So this is how you can acquire image using LED view.
Now this image.
How pixels.
So I want to work with the pixels.
So I just go back.
Two images.
So now we have a match.
Of real.
Right now in this.
If you make it false, then.
Check out how the image behave.
So it is great image over here as you see.
And if I make it due then I got.
Colorful image, as you see.
So right now, I just make it false.
So here I have my real image.
Then I want to work with pixels.
So for that purpose, go to these new realities.
Pixel manipulation.
Or here you have image.
I make you image to edit.
So I want to just convert this image to edit.
So for that purpose, I make it.
Control edge and over here on the top image pixels.
You eight we got.
So I just create an indicator for that I go to the array and you see two parallel lines are there.
So I'm also creating labels for this so visible item label.
So you so that you can see.
So again over here, visible item labels.
Again.
Visible items, labels.
So now.
Photo.
Are fentanyl and or here you can see.
There is Eddie.
And in this image I have 4608 columns and three, four, five, six roads.
So when I hit on the button, as you see over here, according to the color, I got different metrics
value.
Basically, this is a pixel value.
So over here you can put like 4600.
Let's say this is a row.
So I put 3400.
And over here I just put 4600.
So here you can find out.
And if you drag it.
So let's check.
I like to increase the size of this.
So let's see.
I am increasing this.
For Tottenham of.
Because art, as you see.
Six.
Okay.
So.
And the number of columns are.
So this is my last element.
So from here, you can check.
Okay.
So this is my.
Matrix for me.
Image.
Then I just go back.
Right now I want to check.
Or I want individual value or I want to convert this image.
Going negative.
And after that, I want to flip it.
So for that purpose.
I want to convert this you eight means pixel value.
I'm using these pixel value.
So for that purpose, I just using a nested loop.
So in my previous videos you can check out what is next to do.
So you have to connect this view eight or here this is my unit.
Connect to the edge.
And when you connect.
To be added to the edge of for loop.
The auto indexing tunnel is automatically turned on in default mode.
So or here.
So right now I'm using weight.
So for that purpose, I want to.
I get a negative of this image.
So for that purpose you go to numeric.
Subtract this value comma.
Two, five, five.
Because the maximum value for you it.
Unsigned integer is 255.
So just connect to the edge then.
Or here again.
I got the pixel value that is subtracted from 255 which will give me a negative.
So I again use area to image function over here.
So I just.
Visible.
It's.
Label and you see.
So connect this.
Check first.
It is a.
You.
It is over here.
Okay.
Now again, I have to create.
Image.
I want to save that image for that purpose.
I just drag and copy this so my image is saved for let's see, name me because the name of this file
and this file should be different.
So I'll just connect this to this image.
And over here, I got my.
Negative.
So.
Let's be clear here.
This is my negative or my particular image.
So connect this.
As you see.
Well, let's go to panel.
So when I hit on on button.
As you see.
Let's say I just make it through and.
When I hit on the button.
There are some problem in the immediate region.
If my word.
Everything is right.
So, again, just.
Google or here I just use positive symbol, so just delete it.
I want to subtract, not add.
Okay.
Because I want to subtract.
From 255 my particular value and it will give me the result.
Again.
Invented image type.
So I just make it false.
And when I hit on a button, as you see, or here, this is my image and this is my negative image,
it directly make negative to positive, start to positive.
As you see over here.
This is dark.
This is.
Our hair in this case is white, so it will convert black to white or white to black.
So because in this image processing, let's say zero denotes white and 255 denotes black.
So when we subtract from 255.
So it will convert.
The image from white to black.
Okay.
So as you see over here, we have a negative image.
Then after this, I want to also flip this.
So for flipping, I again use.
And this loop.
I just go for a nested loop.
Nested for loop, as you see.
And this is my pixel value and I want to just reverse it.
So go to arrays and or here.
I was one dimensional.
Okay, so just like, what's it?
Or you can say in this case, I'm just not using this to loop in case all this.
I'm just.
It was one time because inside for loop, if you connect to the dimensional array, it will.
So after this, it will convert two dimensional area to one dimensional.
So as you see.
So what?
Here, I just copy it.
And this is my flip.
Image
connected.
It is not connecting to this because I want to.
Connect this.
Using.
First I want to convert this area to image.
It's been this.
Connect this, and I also want to save it.
So let's say this and in this case.
They?
SC Okay, so just name it and this.
Yeah, I got my flip.
Image.
So that's what happened to my image.
So when I hit on run button.
And you see or hear, this is my actual grade image.
Then I got a negative.
Then I got a flip image in lab view.
So over here, using these functions, you can.
Use image processing toolbox in live view.
Thank you.