How to Take a Convolution of an dlarray object?

Hi,
I'm trying to create a custom regression output for my CNN. The basic premise is I take an image with various point-spread functions, and output an image with "spikes" at the center of those PSFs, and zero everywhere else.
I input and output images, so my loss function is an L2 loss function based off the different pixel values. To calculate this, I convolve the images with a 2D-Gaussian filter
L = ||T * g - Y * g||^2 + L1; where * denotes the convolution operator, T is the desired output, and Y is the output from the neural net.
My issue is that Y and T are dlarray objects, and imgaussfilt is incompatible with them. Is there a way around this?
Thanks!

回答 (1 件)

Srivardhan Gadila
Srivardhan Gadila 2020 年 8 月 19 日

0 投票

If you are looking for converting the Y and T from dlarray objects to single or double array then you can make use of the extractdata function.

カテゴリ

ヘルプ センター および File ExchangeDeep Learning Toolbox についてさらに検索

質問済み:

2020 年 5 月 20 日

回答済み:

2020 年 8 月 19 日

Community Treasure Hunt

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

Start Hunting!

Translated by