Access TextureTarget in SceneCaptureComponent2D

I created a C++ class inheriting SceneCaptureComponent2D. I need to process the rendered texture using an external library (OpenCV). My questions: how do I read the TextureTarget and where should I put this processing routine (needs to be processed per frame).

What I’ve done so far:

I tried doing TargetTexture->ConstructTex2D… but I get this error (pointer to incomplete class type is not allowed).

For the per frame processing:
I overridden the TickComponent function and put the processing routine there. Is that correct?

To answer my own question. The first problem was due to a missing header. As IntelliSense is not spitting out errors, I thought it was already added but apparently it was not.