One of the worst feelings among the smartphone users these days is the one when the entire data in the phone gets wiped out without you having a clue about it. Sadly, these are sometimes inevitable and happens even after you take precautions. Moreover, the only thing that you would want then is to somehow retrieve your pictures which are mostly attached to fond memories.
One option is via Photo Stream or iCloud. Quite a lot of configurable options make Photo Stream a viable option for a backup besides a good place to share your photos. So if you've got Photo Stream enabled in iCloud, may be the photos you are looking for are already there. To check this, you should go to Settings > iCloud > Photo Stream > Switch ON ‘My Photo Stream'.
While on your iPhone you can open the gallery and from the menu on the bottom, tap on ‘Photo Stream' and simply choose the ‘My Photo Stream' album and see if your photos are in this album.
The second option comes at a price as it will demand a costly third-party application. Basically, you will get the direction when you purchase it.
The third one is the most reliable and has the best possibility to recover the photos from your iOS device. But again this is not a guaranteed procedure but might possibly recover your deleted photos, and this can be done via iTunes.
If you are constantly syncing your device with iTunes, there might be some possibility to recover the data. So you must try restoring the data from the latest backup you must have made. There are ways to do that but few things need to be kept in mind before conducting the restore option. You should backup your contacts, mail and other data on your iTunes. Make sure you've synced your device and backed up other data before restoring the phone.
Connect your iPhone to the computer
In iTunes 11, enable the sidebar through View -> Show Sidebar
Right-click on your device and press ‘Restore from backup'
Choose the latest backup and proceed.