{"action":"opened","issue":{"url":"https://api.github.com/repos/imglib/imglib2-algorithm-fft/issues/4","labels_url":"https://api.github.com/repos/imglib/imglib2-algorithm-fft/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/imglib/imglib2-algorithm-fft/issues/4/comments","events_url":"https://api.github.com/repos/imglib/imglib2-algorithm-fft/issues/4/events","html_url":"https://github.com/imglib/imglib2-algorithm-fft/issues/4","id":54325897,"number":4,"title":"expected shape of image for realToComplex transform","user":{"login":"psteinb","id":1465603,"avatar_url":"https://avatars.githubusercontent.com/u/1465603?v=3","gravatar_id":"","url":"https://api.github.com/users/psteinb","html_url":"https://github.com/psteinb","followers_url":"https://api.github.com/users/psteinb/followers","following_url":"https://api.github.com/users/psteinb/following{/other_user}","gists_url":"https://api.github.com/users/psteinb/gists{/gist_id}","starred_url":"https://api.github.com/users/psteinb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psteinb/subscriptions","organizations_url":"https://api.github.com/users/psteinb/orgs","repos_url":"https://api.github.com/users/psteinb/repos","events_url":"https://api.github.com/users/psteinb/events{/privacy}","received_events_url":"https://api.github.com/users/psteinb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-14T14:10:46Z","updated_at":"2015-01-14T14:10:46Z","closed_at":null,"body":"hi,\r\n\r\nI wanted to test-drive imglib2-algorithm-fft, but I am getting \r\n\r\n```java\r\nException in thread \"main\" java.lang.ArrayIndexOutOfBoundsException: 3\r\n        at net.imglib2.algorithm.fft2.FFTMethods.realToComplex(FFTMethods.java:580)\r\n        at net.imglib2.algorithm.fft2.FFTMethods.realToComplex(FFTMethods.java:521)\r\n        at net.imglib2.algorithm.fft2.FFTMethods.realToComplex(FFTMethods.java:473)\r\n        at net.imglib2.algorithm.fft2.FFTMethods.realToComplex(FFTMethods.java:407)\r\n...\r\n```\r\n\r\nThe code I use goes along the lines of \r\n\r\n```\r\nfinal ImgFactory< FloatType > imgFactory = new ArrayImgFactory< FloatType >();\r\nfinal ImgFactory< ComplexFloatType > cimgFactory = new ArrayImgFactory< ComplexFloatType >();\r\n\t    \r\nlong[] shape = new long[] { 512, 512, 512 };\r\nlong[] cshape = new long[] { shape[0]/2 + 1, 512, 512 };\r\n\t    \r\nfinal Img< FloatType > image = imgFactory.create( shape , new FloatType(0) );\r\nfinal Img< ComplexFloatType > result = cimgFactory.create( cshape , new ComplexFloatType() );\r\n\r\nfinal boolean flag = FFTMethods.realToComplex(image, result, shape.length);\r\n```\r\n\r\nI'd appreciate any help!\r\n\r\nBest,\r\nP"}}