There is no way to do that with the carousel, it will not resize images based on heights, only width.
You can force a width and a height, but then it will crop images bottom.
The only clean way to control that is to create a resized version of all your images, but if they do not have the same width, you will get blank space.
If resizing images is not possible or you want images of different width packed together, you will need to look for a different plugin.