Learn R Programming

CropDetectR (version 0.0.1)

crop_row_finder: Maps out the crop rows of the image (of a maize field)

Description

Finds the x coordinates of the crop rows in the image.

Usage

crop_row_finder(picture_list, ratio, final_ratio, intensity)

Arguments

picture_list

The list of rotated images originally from a single image.

ratio

The first strict ratio used to identify which rotation has the most vertical crop rows.

final_ratio

The less-strict ratio used on the best image after rotations to capture smaller potential crop rows.

intensity

The amount of smoothing of the image.

Value

a list of x coordinates for the image on which the function was applied.

Details

This function is a combination of two previous functions best_rotation and crop_lines to find the best rotation and then map out the x coordinates of the crop rows in the image.

Examples

Run this code
# NOT RUN {
crop_rows <- crop_row_finder(picture_list, 0.5, 0.05, 0.25)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab