How to adjust photos for google cardboard - photoshop

I have several pairs of photos that I want to display on a google cardboard viewer. When I combine the images and put them next to each other as 2 square pics (one for each eye) they are distorted in the corners. Looking at a few images on the screen they have a pincushion effect. How do I replicate this pincushion effect? What parameters and values am I looking at? Ideally I'd like a solution in photoshop for example.
I did find this
Google Cardboard default distortion values
But I'm not developing an app to do this.
Thanks

Related

How to put two videos below in the background of the site?

When I put two videos, the videos are placed on top of each other or with a space.enter image description herelike this
I posted two videos with different classes, but no matter what I do, the background doesn't turn out the way I want.enter image description here
I want it to be like this

How to detect an image between shapes from camera

I've been searching around the web about how to do this and I know that it needs to be done with OpenCV. The problem is that all the tutorials and examples that I find are for separated shapes detection or template matching.
What I need is a way to detect the contents between 3 circles (which can be a photo or something else). From what I searched, its not to difficult to find the circles with the camera using contours but, how do I extract what is between them? The circles work like a pattern on the image to grab what is "inside the pattern".
Do I need to use the contours of each circle and measure the distance between them to grab my contents? If so, what if the image is a bit rotated/distorted on the camera?
I'm using Xamarin.iOS for this but from what I already saw, I believe I need to go native for this and any Objective C example is welcome too.
EDIT
Imagining that the image captured by the camera is this:
What I want is to match the 3 circles and get the following part of the image as result:
Since the images come from the camera, they can be rotated or scaled up/down.
The warpAffine function will let you map the desired area of the source image to a destination image, performing cropping, rotation and scaling in a single go.
Talking about rotation and scaling seem to indicate that you want to extract a rectangle of a given aspect ratio, hence perform a similarity transform. To define such a transform, three points are too much, two suffice. The construction of the affine matrix is a little tricky.

Insert video into InDesign in a not fitting box

How can I put af video into InDesign in a frame/box that not has the normel video proportions?
When I place a video into a box that is square I get a message saying that some elements are cropped in a way that PDF cannot display, or something like that.
Is video in square boxes or maybe circles not possible?
If you want the PDF document to include a play area with feathering or other effects that may not export well when applied to a poster, consider using a placed image for the play area, and then place a movie (without a poster) on top of the placed image.

Camera API (Detect good pictures, rule of thirds etc)

So I am working on an app that will be taking pictures. I am using OpenCV to do things like detect that people are present in the picture. However what I would like to be able to do is detect if the picture is "good".
I am not sure exactly how to approach it but some ideas are:
I want to either detect a picture follows the rule of thirds. If it does not it could adjust the camera.
Have different types of pictures. So sometimes take a picture of a group and other times individual shots.
I think it may be easiest to take the picture and then try and crop it to meet one of these requirements? But I was wondering if there is any api or something that would be helpful for this?

Best way resize photo gallery for preview

My app has more then 1000 photos and 50 galleries. It looks like as iphone Photos app. In preview list of gallery I have problem with performance.
In profile I saw what [sourceImage drawInRect:thumbnailRect] take 96% of time.
What is the best way to fix this issue?
Duplicate with small size of images I did.
Perhaps there is another solution?
Best way is to create thumbnail images for every Image File and save them as thumb_orginalimagefilename.png.
You can batch edit images in many desktop publishing programs.
Photoshop or Fireworks. In Picasa you can just multi-select a ton of images, like an entire folder and then Export to File and choose the output size
Create three large images that contain all of the thumbs in each gallery and load them in one UIScrollView with semi-transparent UIImageButtons over the locations where the thumbs appear in the image.
This could prove faster, since you only load one image per gallery, but you would have to try it to find out. I have done this before as it helped to reduce the size of my app.