How to noise dataimage store with a specific portion of an external image?

I have a dataimage store and want to noise its images by an external image. However, not use the whole new image, instead use various portions of it

Answers (1)

You can use tranform datastore function for this purpose. This allows you to write a custom function specifying how you would like to modify your data.
dsnew = transform(imds, @(inp) custom_fcn(inp, external_image));

This question is closed.

Products

Release

R2019a

Asked:

on 27 Aug 2020

Closed:

on 20 Aug 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!