RadialFunctionImage3d
Creates a new three-dimensional image by a spherical projection of an array of values.
Access to parameter description
This algorithm creates a spherical construction of an image from a single array. The resulting image is a radial projection of the input array from the center: $$I(i,j,k) = Array( dist( (ic,jc,kc), (i,j,k) ) )$$ Where $(ic,jc,kc)$ represents the image center and $dist$ is the pointwise distance in voxels.
The output image is necessarily a cube with a side given as an input parameter.
The type of the output image is set by an enumerate as detailed in the Data Type Management section.
See also
Access to parameter description
This algorithm creates a spherical construction of an image from a single array. The resulting image is a radial projection of the input array from the center: $$I(i,j,k) = Array( dist( (ic,jc,kc), (i,j,k) ) )$$ Where $(ic,jc,kc)$ represents the image center and $dist$ is the pointwise distance in voxels.
The output image is necessarily a cube with a side given as an input parameter.
The type of the output image is set by an enumerate as detailed in the Data Type Management section.
See also
Function Syntax
This function returns the outputImage output parameter.
// Function prototype. std::shared_ptr< iolink::ImageView > radialFunctionImage3d( std::vector<double> inputArray, RadialFunctionImage3d::OutputType outputType, int32_t imageSize, std::shared_ptr< iolink::ImageView > outputImage = NULL );
This function returns the outputImage output parameter.
// Function prototype. radial_function_image_3d( input_array = list(range(255,-1,-1)), output_type = RadialFunctionImage3d.OutputType.UNSIGNED_INTEGER_8_BIT, image_size = 256, output_image = None )
This function returns the outputImage output parameter.
// Function prototype. public static IOLink.ImageView RadialFunctionImage3d( double[] inputArray = null, RadialFunctionImage3d.OutputType outputType = ImageDev.RadialFunctionImage3d.OutputType.UNSIGNED_INTEGER_8_BIT, Int32 imageSize = 256, IOLink.ImageView outputImage = null );
Class Syntax
Parameters
Class Name | RadialFunctionImage3d |
---|
Parameter Name | Description | Type | Supported Values | Default Value | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
inputArray |
The input array representing the radial intensity values. | Lut | {255, 254,..., 1, 0} | ||||||||||||||||||
outputType |
The output image data type.
|
Enumeration | UNSIGNED_INTEGER_8_BIT | ||||||||||||||||||
imageSize |
The X, Y, and Z size in voxels of the cubic output image. | Int32 | >=0 | 256 | |||||||||||||||||
outputImage |
The output image. | Image | nullptr |
Object Examples
RadialFunctionImage3d radialFunctionImage3dAlgo; radialFunctionImage3dAlgo.setInputArray( {255, 254, 253, 252, 251, 250, 249, 248, 247, 246, 245, 244, 243, 242, 241, 240, 239, 238, 237, 236, 235, 234, 233, 232, 231, 230, 229, 228, 227, 226, 225, 224, 223, 222, 221, 220, 219, 218, 217, 216, 215, 214, 213, 212, 211, 210, 209, 208, 207, 206, 205, 204, 203, 202, 201, 200, 199, 198, 197, 196, 195, 194, 193, 192, 191, 190, 189, 188, 187, 186, 185, 184, 183, 182, 181, 180, 179, 178, 177, 176, 175, 174, 173, 172, 171, 170, 169, 168, 167, 166, 165, 164, 163, 162, 161, 160, 159, 158, 157, 156, 155, 154, 153, 152, 151, 150, 149, 148, 147, 146, 145, 144, 143, 142, 141, 140, 139, 138, 137, 136, 135, 134, 133, 132, 131, 130, 129, 128, 127, 126, 125, 124, 123, 122, 121, 120, 119, 118, 117, 116, 115, 114, 113, 112, 111, 110, 109, 108, 107, 106, 105, 104, 103, 102, 101, 100, 99, 98, 97, 96, 95, 94, 93, 92, 91, 90, 89, 88, 87, 86, 85, 84, 83, 82, 81, 80, 79, 78, 77, 76, 75, 74, 73, 72, 71, 70, 69, 68, 67, 66, 65, 64, 63, 62, 61, 60, 59, 58, 57, 56, 55, 54, 53, 52, 51, 50, 49, 48, 47, 46, 45, 44, 43, 42, 41, 40, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0} ); radialFunctionImage3dAlgo.setOutputType( RadialFunctionImage3d::OutputType::UNSIGNED_INTEGER_8_BIT ); radialFunctionImage3dAlgo.setImageSize( 256 ); radialFunctionImage3dAlgo.execute(); std::cout << "outputImage:" << radialFunctionImage3dAlgo.outputImage()->toString();
radial_function_image_3d_algo = imagedev.RadialFunctionImage3d() radial_function_image_3d_algo.input_array = list(range(255,-1,-1)) radial_function_image_3d_algo.output_type = imagedev.RadialFunctionImage3d.UNSIGNED_INTEGER_8_BIT radial_function_image_3d_algo.image_size = 256 radial_function_image_3d_algo.execute() print( "output_image:", str( radial_function_image_3d_algo.output_image ) )
RadialFunctionImage3d radialFunctionImage3dAlgo = new RadialFunctionImage3d { inputArray = new double[]{255, 254, 253, 252, 251, 250, 249, 248, 247, 246, 245, 244, 243, 242, 241, 240, 239, 238, 237, 236, 235, 234, 233, 232, 231, 230, 229, 228, 227, 226, 225, 224, 223, 222, 221, 220, 219, 218, 217, 216, 215, 214, 213, 212, 211, 210, 209, 208, 207, 206, 205, 204, 203, 202, 201, 200, 199, 198, 197, 196, 195, 194, 193, 192, 191, 190, 189, 188, 187, 186, 185, 184, 183, 182, 181, 180, 179, 178, 177, 176, 175, 174, 173, 172, 171, 170, 169, 168, 167, 166, 165, 164, 163, 162, 161, 160, 159, 158, 157, 156, 155, 154, 153, 152, 151, 150, 149, 148, 147, 146, 145, 144, 143, 142, 141, 140, 139, 138, 137, 136, 135, 134, 133, 132, 131, 130, 129, 128, 127, 126, 125, 124, 123, 122, 121, 120, 119, 118, 117, 116, 115, 114, 113, 112, 111, 110, 109, 108, 107, 106, 105, 104, 103, 102, 101, 100, 99, 98, 97, 96, 95, 94, 93, 92, 91, 90, 89, 88, 87, 86, 85, 84, 83, 82, 81, 80, 79, 78, 77, 76, 75, 74, 73, 72, 71, 70, 69, 68, 67, 66, 65, 64, 63, 62, 61, 60, 59, 58, 57, 56, 55, 54, 53, 52, 51, 50, 49, 48, 47, 46, 45, 44, 43, 42, 41, 40, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0}, outputType = RadialFunctionImage3d.OutputType.UNSIGNED_INTEGER_8_BIT, imageSize = 256 }; radialFunctionImage3dAlgo.Execute(); Console.WriteLine( "outputImage:" + radialFunctionImage3dAlgo.outputImage.ToString() );
Function Examples
auto result = radialFunctionImage3d( {255, 254, 253, 252, 251, 250, 249, 248, 247, 246, 245, 244, 243, 242, 241, 240, 239, 238, 237, 236, 235, 234, 233, 232, 231, 230, 229, 228, 227, 226, 225, 224, 223, 222, 221, 220, 219, 218, 217, 216, 215, 214, 213, 212, 211, 210, 209, 208, 207, 206, 205, 204, 203, 202, 201, 200, 199, 198, 197, 196, 195, 194, 193, 192, 191, 190, 189, 188, 187, 186, 185, 184, 183, 182, 181, 180, 179, 178, 177, 176, 175, 174, 173, 172, 171, 170, 169, 168, 167, 166, 165, 164, 163, 162, 161, 160, 159, 158, 157, 156, 155, 154, 153, 152, 151, 150, 149, 148, 147, 146, 145, 144, 143, 142, 141, 140, 139, 138, 137, 136, 135, 134, 133, 132, 131, 130, 129, 128, 127, 126, 125, 124, 123, 122, 121, 120, 119, 118, 117, 116, 115, 114, 113, 112, 111, 110, 109, 108, 107, 106, 105, 104, 103, 102, 101, 100, 99, 98, 97, 96, 95, 94, 93, 92, 91, 90, 89, 88, 87, 86, 85, 84, 83, 82, 81, 80, 79, 78, 77, 76, 75, 74, 73, 72, 71, 70, 69, 68, 67, 66, 65, 64, 63, 62, 61, 60, 59, 58, 57, 56, 55, 54, 53, 52, 51, 50, 49, 48, 47, 46, 45, 44, 43, 42, 41, 40, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0}, RadialFunctionImage3d::OutputType::UNSIGNED_INTEGER_8_BIT, 256 ); std::cout << "outputImage:" << result->toString();
result = imagedev.radial_function_image_3d( list(range(255,-1,-1)), imagedev.RadialFunctionImage3d.UNSIGNED_INTEGER_8_BIT, 256 ) print( "output_image:", str( result ) )
IOLink.ImageView result = Processing.RadialFunctionImage3d( new double[]{255, 254, 253, 252, 251, 250, 249, 248, 247, 246, 245, 244, 243, 242, 241, 240, 239, 238, 237, 236, 235, 234, 233, 232, 231, 230, 229, 228, 227, 226, 225, 224, 223, 222, 221, 220, 219, 218, 217, 216, 215, 214, 213, 212, 211, 210, 209, 208, 207, 206, 205, 204, 203, 202, 201, 200, 199, 198, 197, 196, 195, 194, 193, 192, 191, 190, 189, 188, 187, 186, 185, 184, 183, 182, 181, 180, 179, 178, 177, 176, 175, 174, 173, 172, 171, 170, 169, 168, 167, 166, 165, 164, 163, 162, 161, 160, 159, 158, 157, 156, 155, 154, 153, 152, 151, 150, 149, 148, 147, 146, 145, 144, 143, 142, 141, 140, 139, 138, 137, 136, 135, 134, 133, 132, 131, 130, 129, 128, 127, 126, 125, 124, 123, 122, 121, 120, 119, 118, 117, 116, 115, 114, 113, 112, 111, 110, 109, 108, 107, 106, 105, 104, 103, 102, 101, 100, 99, 98, 97, 96, 95, 94, 93, 92, 91, 90, 89, 88, 87, 86, 85, 84, 83, 82, 81, 80, 79, 78, 77, 76, 75, 74, 73, 72, 71, 70, 69, 68, 67, 66, 65, 64, 63, 62, 61, 60, 59, 58, 57, 56, 55, 54, 53, 52, 51, 50, 49, 48, 47, 46, 45, 44, 43, 42, 41, 40, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0}, RadialFunctionImage3d.OutputType.UNSIGNED_INTEGER_8_BIT, 256 ); Console.WriteLine( "outputImage:" + result.ToString() );