Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

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

1 vue (au cours des 30 derniers jours)
Mohamed Elbeialy
Mohamed Elbeialy le 27 Août 2020
Clôturé : MATLAB Answer Bot le 20 Août 2021
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

Réponses (1)

Divya Gaddipati
Divya Gaddipati le 13 Oct 2020
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));

Produits


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by