Microscopy Image Browser  1.233
All Classes Files Functions Variables Pages
getClickPoint.m File Reference

A function that gets ginput function to pick a point within imageAxes. More...

Functions

function [ xData ,
yData ,
zData ,
xClick ,
yClick ] = 
getClickPoint (handles, nTimes, permuteSw)
 A function that gets ginput function to pick a point within imageAxes. More...
 

Detailed Description

A function that gets ginput function to pick a point within imageAxes.

Function Documentation

function [ xData , yData , zData , xClick , yClick ] = getClickPoint (   handles,
  nTimes,
  permuteSw 
)

A function that gets ginput function to pick a point within imageAxes.

Parameters
handleshandles structure of im_browser
nTimes[optional] number of points to get, default = 1
permuteSw[optional], can be empty
  • when 0 returns the coordinates for the dataset in the original xy-orientation;
  • when 1 (default) returns coordinates for the dataset so that the currently selected orientation becomes xy
Return values
xDatax - coordinate within the dataset
yDatay - coordinate within the dataset
zDataz - coordinate within the dataset; note! The Z-value is the same for all points
xClickx - coordinate of the click
yClicky - coordinate of the dataset
Required fields of handles:

Examples:

[xData,yData,zData, xClick, yClick] = getClickPoint(handles); // get 1 point
[xData,yData,zData, xClick, yClick] = getClickPoint(handles,5); // get 5 points

References my_ginput().

Referenced by Measure.AngleFun(), Measure.CaliperFun(), Measure.CircleFun(), Measure.DistanceFun(), Measure.DistancePolyFun(), roiRegion.imellipseFun(), roiRegion.impolyFun(), roiRegion.imrectFun(), and Measure.PointFun().

Here is the call graph for this function:

Here is the caller graph for this function: