So cropping images in something fairly straightforward I imagine most of you have done this in markets
of wood or using your iPhone or any image editing software.
It basically refers to extracting part of the image that you want.
Hence you're moving the excess.
So in this example here we just wanted to censor the rooftop of love.
And that's what we get here.
So let's take a look at how we do this and up NCB so you can see we actually doesn't have a direct cropping
function.
However it still easily done using them.
And that's done in this line right here.
So what number allows us to do is we can put our image right here and then using the indexing tools
or Shin's in methods we finally started to enroll in a start and them and separated by a comma.
And that basically extracts direct Hangal that we wanted in or well wanted to crop out initially.
So the defined start row and start all we actually Lebow we lower the heights and it went for this and
we actually take 25 percent of the height and 25 percent have to wait and then when 75 is 75 percent
of the height and width.
That gives us the exact center point of the move as you saw in the previous slide.
Yeah.
So as I just approximate it.
What that do is I mentioned should be so basic starter a 25 percent here.
Just sit at this distance from here to here is 25 percent and this distance from here to here is 75
percent of the image.
And similarly for columns here.
So you can play with those values if you want to get into actual bodies.
I just did this to make it easier to modify.
So let's run this code and see how it works.
So original image and this is a cropped image.
It actually works fairly well.
So let's show of strength overly this here.
So you can actually understand a bit more what I did here.
So by saying 75 25 percent rule with here I'm seeing start position of the rows you want to extract.
Starts Here.
That's 25 percent point and 75 percent point starts here.
Actually these are homes or homes.
And similarly with rows 25 percent starts here.
As you can see is 25 percent from here to here and 75 percent value starts from here to here.
So that's exactly how we get this cropped image here.
And if you ever need to use this cropped image for anything else it actually stores it as corrupt.
All these stories are cropped image here from a well known by indexing and that can be used for many
other things going forward.
So that's it for cropping.