Hi Max,
Even though I like computers from Apple very much, you will probably get a more powerful Windows PC for the same amount of money. One major shortcoming of the latest iMacs is the graphics card (Radeon Pro 570/575/580).
Not the greatest choice for Agisoft Photoscan, because you want the best possible (gaming) graphics card (e.g., Nvidia GTX 1080 Ti) to speed up your processing (or even 2 of them). You will see a huge processing time improvement for ALIGN PHOTOS and BUILD DENSE CLOUD, where a lot/most of the work is done on your GPU (= graphics card) not CPU (=processor).
Additionally, you might even want to get a processor with more cores. The maximum you can get on the iMac at the moment are 4 cores. More cores are better/quicker during image alignment.
The best Mac for Agisoft Photoscan is probably the new iMac Pro which will be released later this year. Powerful VEGA GPU and up to 18 cores. See here:
https://www.apple.com/imac-pro/Won't be cheap though ;-)
Probably worth to wait a few more months (unless you need a new computer uregently).
Regards,
SAV