Skip to content

AFNI/NIfTI Server

Sections
Personal tools
You are here: Home » AFNI » Documentation

Doxygen Source Code Documentation


Plane_Equation.m File Reference

Go to the source code of this file.


Functions

is for the three points (0 0 0)
is for the three and (1 1 1).%If the three points are colinear
i, 4 Info: (1 XYZ)
 Triplets (2).XYZ
 Triplets (3).XYZ
 if (nargin==1)
end if (isrow(Triplets)==-1)
allocate for (i=1:1:Nplanes)
 Eq (i, 1)
 Eq (i, 2)
 Eq (i, 3)
 Eq (i, 4)
 if (verbose)
 if (~rem(i, 200))
 fprintf (1,'[%g/%g]\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b', i, Nplanes)

Variables

 function [err, Eq]
is for the three Eq
is for the three default is
Output 
Parameters
view(3)%%Author initailize
return variables 
err = Plane_Equation (Triplets) ShowPlane (Eq) 1
 verbose = 1
 return
end Triplets = Triplets(:)
 Nplanes = size(Triplets,1)
allocate Form the equation
of the plane 
x1 = Triplets(i).XYZ(1,1)
 y1 = Triplets(i).XYZ(1,2)
 z1 = Triplets(i).XYZ(1,3)
 x2 = Triplets(i).XYZ(2,1)
 y2 = Triplets(i).XYZ(2,2)
 z2 = Triplets(i).XYZ(2,3)
 x3 = Triplets(i).XYZ(3,1)
 y3 = Triplets(i).XYZ(3,2)
 z3 = Triplets(i).XYZ(3,3)

Function Documentation

is for the three and 1 1  1  ) 
 

Eq ,
 

Eq ,
 

Eq ,
 

Eq ,
 

allocate for = 1:1:Nplanes  ) 
 

fprintf ,
'\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b [%g/%g],
,
Nplanes 
 

if rem(i, 200)  ) 
 

end if verbose   ) 
 

end if isrow(Triplets)  = = -1  ) 
 

if nargin  = = 1  ) 
 

i,4 Info: XYZ  )  [static, virtual]
 

is for the three points 0 0  0  ) 
 

Referenced by draw_image_line(), main(), qh_copypoints(), qh_detjoggle(), qh_detsimplex(), qh_detvnorm(), qh_facetcenter(), qh_init_B(), qh_initialvertices(), qh_initqhull_globals(), qh_maxmin(), qh_maxsimplex(), qh_new_qhull(), qh_partitionall(), qh_printextremes(), qh_printfacet3geom_points(), qh_printfacet3geom_simplicial(), qh_printfacet3math(), qh_printpoints(), qh_printpoints_out(), qh_projectpoints(), qh_readpoints(), qh_rotatepoints(), qh_scalelast(), qh_scalepoints(), qh_setdelaunay(), and qh_voronoi_center().

Triplets  ) 
 

Triplets  ) 
 


Variable Documentation

Eq
 

Initial value:

 [0 0 0 0]
%
%   verbose (0/1)

Definition at line 53 of file Plane_Equation.m.

Referenced by SUMA_Plane_Equation(), and SUMA_Surf_Plane_Intersect_ROI().

end end end err = Plane_Equation (Triplets) ShowPlane (Eq) 1
 

Definition at line 73 of file Plane_Equation.m.

function[err, Eq]
 

Initial value:

 Plane_Equation (Triplets, verbose)
%
%   [err,Eq] = Plane_Equation (Triplets, [verbose])
%
%Purpose:
%   Determine the equation of the plane passing through three points
%   
%   
%Input Parameters:
%   Triplets is an Nx1 vector of strucutres. Each structure defines a plane
%    .XYZ : is a 3x3 matrix containing the XYZ of each of the three points
%           Each row is a point. ie: XYZ = [0 0 0

Definition at line 1 of file Plane_Equation.m.

Nplanes = size(Triplets,1)
 

Definition at line 52 of file Plane_Equation.m.

is for the three default is Output Parameters
 

Definition at line 14 of file Plane_Equation.m.

return
 

Definition at line 74 of file Plane_Equation.m.

end Triplets = Triplets(:)
 

Definition at line 51 of file Plane_Equation.m.

verbose = 1
 

Definition at line 47 of file Plane_Equation.m.

allocate Form the equation of the plane x1 = Triplets(i).XYZ(1,1)
 

Definition at line 57 of file Plane_Equation.m.

Referenced by AFNI_3d_linefill(), bandv_(), bisect_(), calculate_results(), calcWithOffsets(), ClassifyRawVolume(), clip_line_to_rect(), clip_memplot(), ComputeBDiffDCTs(), ComputeDiffDCTs(), ComputeOctreeMask(), dct8(), draw_image_line(), draw_marker(), DRAW_ttatlas_CB(), draw_xseg(), drawBox(), drawtriangle(), EDIT_opts(), ExtractClassifiedVolume(), ExtractRawVolume(), fd_line(), fdct8(), flip_memplot(), GenerateGrafFunc(), GenMBType(), get_linear_trend(), get_quadratic_trend(), getdimen(), idct8(), ifdct8(), ISQ_cropper(), line_(), linear_interp(), load_rect_str(), main(), MAKER_4D_to_typed_fbuc(), MAKER_4D_to_typed_fim(), MAKER_4D_to_typed_fith(), memplot_to_postscript(), memplot_to_RGB_sef(), memplot_to_X11_sef(), Mhead_GenSequenceHeader(), mp_rle_huff_block(), mp_rle_huff_pblock(), mpeg2_slice(), Mpost_RLEHuffIBlock(), Mpost_RLEHuffPBlock(), mri_drawline(), phdot_(), phline_(), plotcirc_memplot(), plotline_memplot(), plotpak_line(), plotpak_phdot(), plotpak_phline(), plotpak_point(), plotpak_unphys(), plotpak_zzphys(), plotrect_memplot(), PLUTO_4D_to_nothing(), pointclip(), POWER_main(), ppmd_line(), ppmd_polyspline(), ppmd_spline3(), prconr(), ps_arc(), ps_rect(), qh_initialvertices(), qh_makeridges(), qzvec_(), RWC_drag_circle(), RWC_drag_rectangle(), RWC_draw_rect(), setw_(), ShadeRawVolume(), SUMA_binTesselate(), SUMA_DrawWindowLine(), THD_autonudge(), tinvit_(), tridib_(), tsturm_(), VPClassifyBlock(), vpExtract(), VPShadeBlock(), zzaxxx_(), zzclip_(), zzline_(), zzlinx_(), zzlogx_(), zzmpli_(), and zzphph_().

x2 = Triplets(i).XYZ(2,1)
 

Definition at line 58 of file Plane_Equation.m.

Referenced by AFNI_3d_linefill(), algdiv(), bcorr(), calcWithOffsets(), clip_line_to_rect(), clip_memplot(), ComputeBDiffDCTs(), ComputeDiffDCTs(), create_row(), dct8(), draw_image_line(), DRAW_ttatlas_CB(), draw_xseg(), drawtriangle(), EDIT_opts(), erf1(), fd_line(), fdct8(), flip_memplot(), GenerateGrafFunc(), GenMBType(), get_quadratic_trend(), getdimen(), idct8(), ifdct8(), ISQ_cropper(), line_(), linear_interp(), load_rect_str(), main(), memplot_to_postscript(), memplot_to_RGB_sef(), memplot_to_X11_sef(), mp_rle_huff_block(), mp_rle_huff_pblock(), mpeg2_slice(), Mpost_RLEHuffIBlock(), Mpost_RLEHuffPBlock(), phline_(), plotline_memplot(), plotpak_line(), plotpak_phline(), plotpak_unphys(), plotpak_zzphys(), plotrect_memplot(), ppmd_spline3(), ps_arc(), ps_rect(), RWC_drag_rectangle(), RWC_draw_rect(), setw_(), SUMA_binTesselate(), THD_autonudge(), zzaxxx_(), zzclip_(), zzline_(), zzlinx_(), zzlogx_(), zzmpli_(), and zzphph_().

x3 = Triplets(i).XYZ(3,1)
 

Definition at line 59 of file Plane_Equation.m.

Referenced by create_row(), dct8(), fdct8(), GenMBType(), getdimen(), idct8(), ifdct8(), and SUMA_binTesselate().

y1 = Triplets(i).XYZ(1,2)
 

Definition at line 57 of file Plane_Equation.m.

Referenced by AFNI_3d_linefill(), analyze_results(), calcWithOffsets(), ClassifyRawVolume(), clip_line_to_rect(), clip_memplot(), ComputeOctreeMask(), dbesy1_(), draw_image_line(), DRAW_ttatlas_CB(), draw_xseg(), drawBox(), EDIT_opts(), ExtractClassifiedVolume(), ExtractRawVolume(), fd_line(), flip_memplot(), GenerateGrafFunc(), ISQ_cropper(), line_(), linear_interp(), main(), memplot_to_postscript(), memplot_to_RGB_sef(), memplot_to_X11_sef(), mri_drawline(), phdot_(), phline_(), plotcirc_memplot(), plotline_memplot(), plotpak_line(), plotpak_phdot(), plotpak_phline(), plotpak_point(), plotpak_unphys(), plotpak_zzphys(), plotrect_memplot(), pointclip(), POWER_main(), ppmd_line(), ppmd_polyspline(), ppmd_spline3(), ps_arc(), ps_rect(), RWC_drag_circle(), RWC_drag_rectangle(), RWC_draw_rect(), setw_(), ShadeRawVolume(), SUMA_binTesselate(), SUMA_DrawWindowLine(), THD_autonudge(), VPClassifyBlock(), vpExtract(), VPShadeBlock(), zzaxyy_(), zzclip_(), zzline_(), zzliny_(), zzlogy_(), zzmpli_(), and zzphph_().

y2 = Triplets(i).XYZ(2,2)
 

Definition at line 58 of file Plane_Equation.m.

Referenced by AFNI_3d_linefill(), analyze_results(), calcWithOffsets(), clip_line_to_rect(), clip_memplot(), create_row(), draw_image_line(), DRAW_ttatlas_CB(), draw_xseg(), EDIT_opts(), fd_line(), flip_memplot(), GenerateGrafFunc(), InitSpline(), ISQ_cropper(), line_(), linear_interp(), main(), memplot_to_postscript(), memplot_to_RGB_sef(), memplot_to_X11_sef(), phline_(), plotline_memplot(), plotpak_line(), plotpak_phline(), plotpak_unphys(), plotpak_zzphys(), plotrect_memplot(), ppmd_spline3(), ps_arc(), ps_rect(), RWC_drag_rectangle(), RWC_draw_rect(), setw_(), SUMA_binTesselate(), THD_autonudge(), zzaxyy_(), zzclip_(), zzline_(), zzliny_(), zzlogy_(), zzmpli_(), and zzphph_().

y3 = Triplets(i).XYZ(3,2)
 

Definition at line 59 of file Plane_Equation.m.

Referenced by analyze_results(), create_row(), and SUMA_binTesselate().

z1 = Triplets(i).XYZ(1,3)
 

Definition at line 57 of file Plane_Equation.m.

Referenced by AFNI_3d_linefill(), calcWithOffsets(), ClassifyRawVolume(), ComputeOctreeMask(), DRAW_ttatlas_CB(), drawBox(), EDIT_opts(), ExtractClassifiedVolume(), ExtractRawVolume(), jpeg_fdct_float(), jpeg_fdct_ifast(), jpeg_fdct_islow(), jpeg_idct_2x2(), jpeg_idct_4x4(), jpeg_idct_islow(), main(), mpeg_jrevdct_quick(), mri_brainormalize(), mri_read_dicom(), pointclip(), qzvec_(), ShadeRawVolume(), SUMA_binTesselate(), THD_autonudge(), VPClassifyBlock(), vpExtract(), and VPShadeBlock().

z2 = Triplets(i).XYZ(2,3)
 

Definition at line 58 of file Plane_Equation.m.

Referenced by AFNI_3d_linefill(), basym(), calcWithOffsets(), create_row(), DRAW_ttatlas_CB(), EDIT_opts(), jpeg_fdct_float(), jpeg_fdct_ifast(), jpeg_fdct_islow(), jpeg_idct_4x4(), jpeg_idct_islow(), main(), mpeg_jrevdct_quick(), mri_brainormalize(), SUMA_binTesselate(), and THD_autonudge().

z3 = Triplets(i).XYZ(3,3)
 

Definition at line 59 of file Plane_Equation.m.

Referenced by create_row(), jpeg_fdct_float(), jpeg_fdct_ifast(), jpeg_fdct_islow(), jpeg_idct_4x4(), jpeg_idct_islow(), mpeg_jrevdct_quick(), mri_brainormalize(), and SUMA_binTesselate().

 

Powered by Plone

This site conforms to the following standards: