File tree Expand file tree Collapse file tree
autoarray/structures/arrays Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -483,37 +483,6 @@ def convolved_array_from(self, array: Array2D) -> Array2D:
483483
484484 return Array2D (values = convolved_array_1d , mask = array_2d .mask )
485485
486- def convolved_array_with_mask_from (self , array : Array2D , mask : Mask2D ) -> Array2D :
487- """
488- Convolve an array with this Kernel2D
489-
490- Parameters
491- ----------
492- image
493- An array representing the image the Kernel2D is convolved with.
494-
495- Returns
496- -------
497- convolved_image
498- An array representing the image after convolution.
499-
500- Raises
501- ------
502- KernelException if either Kernel2D psf dimension is odd
503- """
504-
505- if self .mask .shape [0 ] % 2 == 0 or self .mask .shape [1 ] % 2 == 0 :
506- raise exc .KernelException ("Kernel2D Kernel2D must be odd" )
507-
508- convolved_array_2d = scipy .signal .convolve2d (array , self .native , mode = "same" )
509-
510- convolved_array_1d = array_2d_util .array_2d_slim_from (
511- mask_2d = np .array (mask ),
512- array_2d_native = np .array (convolved_array_2d ),
513- )
514-
515- return Array2D (values = convolved_array_1d , mask = mask )
516-
517486 def jax_convolve (self , image , blurring_image , method = "auto" ):
518487 slim_to_2D_index_image = jnp .nonzero (
519488 jnp .logical_not (self .mask .array ), size = image .shape [0 ]
You can’t perform that action at this time.
0 commit comments