ScaleKeepAspect

struct defined in module DataAugmentation


			ScaleKeepAspect(minlengths) <: ProjectiveTransform

Scales the shortest side of item to minlengths, keeping the original aspect ratio.

Examples


			
			
			
			using
			
			 

	
			DataAugmentation
			,
			
			 
			TestImages
			

			
			image
			 
			=
			 
			
			testimage
			(
			
			"
			lighthouse
			"
			)
			

			
			tfm
			 
			=
			 
			

			ScaleKeepAspect
			(
			
			(
			200
			,
			 
			200
			)
			)
			

			
			

	
			apply
			(
			tfm
			,
			 
			

	
			Image
			(
			image
			)
			)
			 
			|>
			 

	
			showitems
Methods

There is 1 method for DataAugmentation.ScaleKeepAspect: