Icon

20230824 Pikairos Just KNIME It Season 2 Challenge 22 Help the Caddie (Part 2)

Last week you helped caddie Tom by identifying golf balls in the provided images. Tom is impressed by your work and asks you to improve your workflow, such that it also counts how many golf balls were identified. Essentially, for each image that Tom gives you, he wants to receive the number of golf balls that there are on it.

Challenge 22: Help the Caddie (Part 2)Last week you helped caddie Tom by identifying golf balls in the provided images. Tom is impressed by your work and asksyou to improve your workflow, such that it also counts how many golf balls were identified. Essentially, for each image thatTom gives you, he wants to receive the number of golf balls that there are on it. ReadGolf BallImage PathCalculateX Positionsof PixelsLoop Througha List of ImagesOne ImagePer ChunkCalculateY Positionsof PixelsRandomly Sample1000 RowsConvert the ImageDimensions intoVaribles so theyCan be Used toCalculate theCoordinates ofEach PixelAssign Numberof ClustersBased onOptimum ValueUse a ParameterOptimisation Loopto Determine theOptimum Number ofClusters (Golf Balls)Collect Resultsfrom All IterationsAppendImages intoOne TableReorderColumnsKeep OnlyRows withR > 200Top = Balls PresentBottom = No Ballsin ImageEnd EmptyTable SwitchRenameImage ColumnRemoveAll ColumnsFrom EmptyTableFill inMissing Number ofBalls With 0End EmptyTable SwitchRemoveAll ColumnsFrom EmptyTableRenameImage ColumnView Results List Files/Folders Math Formula Chunk Loop Start Math Formula Row Sampling Convert ImageDimensions to Variables HierarchicalCluster Assigner Determine OptimumNumber of Clusters Loop End Column Appender Column Resorter Read andProcess Image Row Filter Empty Table Switch End IF Column Rename Column Filter Missing Value Create ScatterPlot of Clusters End IF Column Filter Column Rename InteractiveTable (local) Challenge 22: Help the Caddie (Part 2)Last week you helped caddie Tom by identifying golf balls in the provided images. Tom is impressed by your work and asksyou to improve your workflow, such that it also counts how many golf balls were identified. Essentially, for each image thatTom gives you, he wants to receive the number of golf balls that there are on it. ReadGolf BallImage PathCalculateX Positionsof PixelsLoop Througha List of ImagesOne ImagePer ChunkCalculateY Positionsof PixelsRandomly Sample1000 RowsConvert the ImageDimensions intoVaribles so theyCan be Used toCalculate theCoordinates ofEach PixelAssign Numberof ClustersBased onOptimum ValueUse a ParameterOptimisation Loopto Determine theOptimum Number ofClusters (Golf Balls)Collect Resultsfrom All IterationsAppendImages intoOne TableReorderColumnsKeep OnlyRows withR > 200Top = Balls PresentBottom = No Ballsin ImageEnd EmptyTable SwitchRenameImage ColumnRemoveAll ColumnsFrom EmptyTableFill inMissing Number ofBalls With 0End EmptyTable SwitchRemoveAll ColumnsFrom EmptyTableRenameImage ColumnView Results List Files/Folders Math Formula Chunk Loop Start Math Formula Row Sampling Convert ImageDimensions to Variables HierarchicalCluster Assigner Determine OptimumNumber of Clusters Loop End Column Appender Column Resorter Read andProcess Image Row Filter Empty Table Switch End IF Column Rename Column Filter Missing Value Create ScatterPlot of Clusters End IF Column Filter Column Rename InteractiveTable (local)

Nodes

Extensions

Links