BYU-MicrostructureOfMaterials / OpenXY

Other
35 stars 14 forks source link

Adding New Pattern Center Calibration Error #28

Open elegantEmily opened 3 years ago

elegantEmily commented 3 years ago

I would like to manually select a point in each grain in my EBSD data to conduct a Pattern Center Calibration. However I keep getting this error. I have also tried selecting fewer points (as low as 3) with the same results.

"Starting Strain Minimization Pattern Center Calibration... Starting calibriations with 11 points. Starting parallel pool (parpool) using the 'local' profile ... Connected to the parallel pool (number of workers: 3). Error using genEBSDPatternHybrid (line 255) Index exceeds the number of array elements (0).

Error in PCCalAlkortaKinematic (line 267) parfor(i=1:npoints,NumCores)

Error in PCCalAlkorta (line 32) PCData = PCCalAlkortaKinematic(Settings,PlaneFit,Inds);

Error in PCGUI>NewPC_Callback (line 331) PCData = PCCalAlkorta(Settings,PCSettings{5});

Error in gui_mainfcn (line 95) feval(varargin{:});

Error in PCGUI (line 42) gui_mainfcn(gui_State, varargin{:});

Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)PCGUI('NewPC_Callback',hObject,eventdata,guidata(hObject)) Error while evaluating UIControl Callback."

I have attached an image of the points I selected in my data. I was able to get the example to work, I'm not sure why my data set isn't working. My data is on a Hexgrid and not a Square Grid like the example. image

dtfullwood commented 3 years ago

I doubt the point selection is the problem. If you email me directly, and want to share the dataset I can try and replicate it. dfullwood@byu.edu