Jump to content

Image Stitching for NVIDIA Jetson/User Guide/Gstreamer: Difference between revisions

Line 149: Line 149:
# '''Image indices from 0 to N-1''': if you have N images, you have to use consecutive numbers from '''0''' to '''N-1''' for the target and reference indices. It means that you cannot declare something like <code>target: 6</code> if you have 6 images; the correct index for your last image is  '''5'''.
# '''Image indices from 0 to N-1''': if you have N images, you have to use consecutive numbers from '''0''' to '''N-1''' for the target and reference indices. It means that you cannot declare something like <code>target: 6</code> if you have 6 images; the correct index for your last image is  '''5'''.


= Controlling the Overlap Area through Cropping =
= Controlling the Overlap =
You can set cropping areas for each stitcher input (sink pad). This will allow you to:
You can set cropping areas for each stitcher input (sink pad). This will allow you to:
# Crop an input image without requiring a previous cropping stage to avoid consuming more resources.
# Crop an input image without requiring processing time.
# Reduce the overlapping area between the images to avoid ghosting effects.
# Reduce the overlapping area between the images to avoid ghosting effects.


Line 172: Line 172:
'''Example 2: left/right Cropping'''
'''Example 2: left/right Cropping'''


This hypothetical case shows how to reduce the overlap between two images. So let's crop 200 pixels from the blue image and 200 pixels from the red image.
This hypothetical case shows how to reduce the overlap between two images. So let's crop 200 pixels from the blue image and 200 pixels from the red image. The overlapping area is represented in purple, this is also the area over which we will apply blending to create a seamless transition between both images.
<pre>
<pre>
gst-launch-1.0 cudastitcher sink_0::right=200 sink_1::left=200 ! ...  
gst-launch-1.0 cudastitcher sink_0::right=200 sink_1::left=200 ! ...  
Cookies help us deliver our services. By using our services, you agree to our use of cookies.