Many times "could not have" means a counterfactual result in conditionals or just presumption, but this is a third meaning "couldn't do something".
When do you use "could not have" to mean "couldn't do something"?
ex)A famous Roman poet said, "Books have a life of their own." He was right. In writing this book, I could not have dreamed of its future life. Now I am happy to see this new edition enriched by new pictures in color....
Could not have Ved NEVER means couldn't V!
The example you cite is a perfectly straightforward counterfactual: I would not have been able to dream of this (i.e. even if I had tried to do so.)