class_docstr: Calculates integral of the input image tensor.
  
  This particular version sums over the last two dimensions.
  
  Args:
      image: the input image tensor with shape :math:`(B,C,H,W)`.
  
  Returns:
      Integral tensor for the input image tensor with shape :math:`(B,C,H,W)`.
  
  Shape:
      - Input: :math:`(B, C, H, W)`
      - Output: :math:`(B, C, H, W)`
  
  Examples:
      >>> input = torch.ones(1, 5, 5)
      >>> output = IntegralImage()(input)
      >>> output
      tensor([[[ 1.,  2.,  3.,  4.,  5.],
               [ 2.,  4.,  6.,  8., 10.],
               [ 3.,  6.,  9., 12., 15.],
               [ 4.,  8., 12., 16., 20.],
               [ 5., 10., 15., 20., 25.]]])
class_docstr_tok: ["Calculates","integral","of","the","input","image","tensor",".","This","particular","version","sums","over","the","last","two","dimensions",".","Args",":","image",":","the","input","image","tensor","with","shape",":","math",":","`","(","B",",","C",",","H",",","W",")","`",".","Returns",":","Integral","tensor","for","the","input","image","tensor","with","shape",":","math",":","`","(","B",",","C",",","H",",","W",")","`",".","Shape",":","-","Input",":",":","math",":","`","(","B",",","C",",","H",",","W",")","`","-","Output",":",":","math",":","`","(","B",",","C",",","H",",","W",")","`","Examples",":",">",">",">","input","=","torch.ones","(","1",",","5",",","5",")",">",">",">","output","=","IntegralImage","(",")","(","input",")",">",">",">","output","tensor","(","[","[","[","1.",",","2.",",","3.",",","4.",",","5",".","]",",","[","2.",",","4.",",","6.",",","8.",",","10",".","]",",","[","3.",",","6.",",","9.",",","12.",",","15",".","]",",","[","4.",",","8.",",","12.",",","16.",",","20",".","]",",","[","5.",",","10.",",","15.",",","20.",",","25",".","]","]","]",")"]
code: def forward(self, input: Tensor) -> Tensor:
      return integral_image(input)
  
file_path: kornia/kornia/enhance/integral.py
imports: from typing import Optional, Tuple
  from kornia.core import Module, Tensor
  from kornia.core.check import KORNIA_CHECK, KORNIA_CHECK_SHAPE
label_desc: Use image node_id 1 for calling the IntegralImage obj's underlying member method code with example usage: obj.forward(input) and returns: integral_image