Skip to content

Stitch Images

Class: StitchImagesBlockV1

Source: inference.core.workflows.core_steps.transformations.stitch_images.v1.StitchImagesBlockV1

This block combines two related scenes both containing fair amount of details. Block is utilizing Scale Invariant Feature Transform (SIFT)

Type identifier

Use the following identifier in step "type" field: roboflow_core/stitch_images@v1to add the block as as step in your workflow.

Properties

Name Type Description Refs
name str Enter a unique identifier for this step..
max_allowed_reprojection_error float Advanced parameter overwriting cv.findHomography ransacReprojThreshold parameter. Maximum allowed reprojection error to treat a point pair as an inlier. Increasing value of this parameter for low details photo may yield better results..
count_of_best_matches_per_query_descriptor int Advanced parameter overwriting cv.BFMatcher.knnMatch k parameter. Count of best matches found per each query descriptor or less if a query descriptor has less than k possible matches in total..

The Refs column marks possibility to parametrise the property with dynamic values available in workflow runtime. See Bindings for more info.

Available Connections

Compatible Blocks

Check what blocks you can connect to Stitch Images in version v1.

Input and Output Bindings

The available connections depend on its binding kinds. Check what binding kinds Stitch Images in version v1 has.

Bindings
  • input

    • image1 (image): First input image for this step..
    • image2 (image): Second input image for this step..
    • max_allowed_reprojection_error (float_zero_to_one): Advanced parameter overwriting cv.findHomography ransacReprojThreshold parameter. Maximum allowed reprojection error to treat a point pair as an inlier. Increasing value of this parameter for low details photo may yield better results..
    • count_of_best_matches_per_query_descriptor (integer): Advanced parameter overwriting cv.BFMatcher.knnMatch k parameter. Count of best matches found per each query descriptor or less if a query descriptor has less than k possible matches in total..
  • output

    • stitched_image (image): Image in workflows.
Example JSON definition of step Stitch Images in version v1
{
    "name": "<your_step_name_here>",
    "type": "roboflow_core/stitch_images@v1",
    "image1": "$inputs.image1",
    "image2": "$inputs.image2",
    "max_allowed_reprojection_error": 3,
    "count_of_best_matches_per_query_descriptor": 2
}