C++ Edit UTextureRenderTarget2D During Runtime

I have the above code working in blueprint, This takes the UTextureRenderTarget2D of a ASceneCapture2D actor. The scene capture is a Depth-in-R and thus I need to create a new texture with the scaled R comonent. I am unsure how to do this in c++.

Here is the code I use to draw the texture on screen

DrawTexture(renderTargets[i], thisX, thisY, sensorViewWidth,
				sensorViewHeight, 0.0f, 0.0f, 1.0f, 1.0f, FColor::White, EBlendMode::BLEND_Opaque);