The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
Image handling extension_Crop and then store small images problem
Pekka_Jounela
Member, University Professor Posts: 4 University Professor
Dear experts,
I am using Image Handling extension and the goal is to store a collection of small images cropped from a large large image. To crop many small images (from top-left to right-bottom) I have utilized Loop Parameters operator that is found inside the Pre-Process Images operator (see process attached). The first pre-processing step (until the break-point after Loop Parameters) looks like working appropriately, but then after hitting the Run-button for the second time an error occurs ("The connection is producing wrong type of data").
Are there any ways to solve the error message?
So far I have tried to solve the problem by using operators like Append (Superset), Collect, Flatten Collection and Loop Collection in various ways and combinations but nothing seems to work.
Any help is graciously appreciated
Cheers, Pekka
Attached is the process.
Tagged:
0
Answers
I tested your process and it seemed to work for me, as soon as I removed that loop operator and put the transformation chain straight into the pre-process operator.
I assume, you wanted to iterate over the images in a directory. The good news is that we are doing just that under the hood.
The Read Image Meta Data operator given a directory collects the images (recursively) and provides the list in an ExampleSet.
That is the input for the Pre-Process Operator where you only need to make sure to set the path attribute to the appropriate one to get things working. I recommend taking a look at the Pre-Process tutorial process (MNIST).
Kind regards,
Mate