class_docstr: Full resolution voxel grid equivalent to 4D tensor where shape is
  (features, width, height, depth) with linear interpolation between voxels.
class_docstr_tok: ["Full","resolution","voxel","grid","equivalent","to","4D","tensor","where","shape","is","(","features",",","width",",","height",",","depth",")","with","linear","interpolation","between","voxels","."]
code: def crop_local(
      self,
      min_point_local: torch.Tensor,
      max_point_local: torch.Tensor,
      grid_values: FullResolutionVoxelGridValues,
  ) -> FullResolutionVoxelGridValues:
      assert torch.all(min_point_local < max_point_local)
      min_point_local = torch.clamp(min_point_local, -1, 1)
      max_point_local = torch.clamp(max_point_local, -1, 1)
      _, _, width, height, depth = grid_values.voxel_grid.shape
      resolution = grid_values.voxel_grid.new_tensor(
          [width, height, depth]
      )
      min_point_local01 = (min_point_local + 1) / 2
      max_point_local01 = (max_point_local + 1) / 2
  
      if self.align_corners:
          minx, miny, minz = torch.floor(
              min_point_local01 * (resolution - 1)
          ).long()
          maxx, maxy, maxz = torch.ceil(
              max_point_local01 * (resolution - 1)
          ).long()
      else:
          minx, miny, minz = torch.floor(
              min_point_local01 * resolution - 0.5
          ).long()
          maxx, maxy, maxz = torch.ceil(
              max_point_local01 * resolution - 0.5
          ).long()
  
      return FullResolutionVoxelGridValues(
          voxel_grid=grid_values.voxel_grid[
              :, :, minx : maxx + 1, miny : maxy + 1, minz : maxz + 1
          ]
      )
  
imports: import logging
  import warnings
  from collections.abc import Mapping
  from dataclasses import dataclass, field
  from distutils.version import LooseVersion
  from typing import Any, Callable, ClassVar, Dict, Iterator, List, Optional, Tuple, Type
  import torch
  from omegaconf import DictConfig
  from pytorch3d.implicitron.tools.config import Configurable, registry, ReplaceableBase, run_auto_creation
  from pytorch3d.structures.volumes import VolumeLocator
  from .utils import interpolate_line, interpolate_plane, interpolate_volume
label_desc: Use image node_id 3 for calling the FullResolutionVoxelGrid obj's underlying member method code with example usage: obj.crop_local(min_point_local, max_point_local, grid_values) and returns: FullResolutionVoxelGridValues