public static void planarToBuffered_F32(Planar<GrayF32> src, DataBuffer buffer, BufferedImage dst) {
		if(BoofConcurrency.USE_CONCURRENT ) {
			try {
				if (buffer.getDataType() == DataBuffer.TYPE_BYTE && isKnownByteFormat(dst)) {
					ImplConvertRaster_MT.planarToBuffered_F32(src, (DataBufferByte) buffer, dst.getRaster());
				} else if (buffer.getDataType() == DataBuffer.TYPE_INT) {
					ImplConvertRaster_MT.planarToBuffered_F32(src, (DataBufferInt) buffer, dst.getRaster());
				} else {
					ImplConvertRaster_MT.planarToBuffered_F32(src, dst);
				}
				// hack so that it knows the buffer has been modified
				dst.setRGB(0, 0, dst.getRGB(0, 0));
			} catch (java.security.AccessControlException e) {
				ImplConvertRaster_MT.planarToBuffered_F32(src, dst);
			}
		} else {
			try {
				if (buffer.getDataType() == DataBuffer.TYPE_BYTE && isKnownByteFormat(dst)) {
					ImplConvertRaster.planarToBuffered_F32(src, (DataBufferByte) buffer, dst.getRaster());
				} else if (buffer.getDataType() == DataBuffer.TYPE_INT) {
					ImplConvertRaster.planarToBuffered_F32(src, (DataBufferInt) buffer, dst.getRaster());
				} else {
					ImplConvertRaster.planarToBuffered_F32(src, dst);
				}
				// hack so that it knows the buffer has been modified
				dst.setRGB(0, 0, dst.getRGB(0, 0));
			} catch (java.security.AccessControlException e) {
				ImplConvertRaster.planarToBuffered_F32(src, dst);
			}
		}
	}
public static void planarToBuffered_F32 ( Planar < GrayF32 > src , DataBuffer buffer , BufferedImage dst ) { if ( BoofConcurrency . USE_CONCURRENT ) { try { if ( buffer . getDataType ( ) == DataBuffer . TYPE_BYTE && isKnownByteFormat ( dst ) ) { ImplConvertRaster_MT . planarToBuffered_F32 ( src , ( DataBufferByte ) buffer , dst . getRaster ( ) ) ; } else if ( buffer . getDataType ( ) == DataBuffer . TYPE_INT ) { ImplConvertRaster_MT . planarToBuffered_F32 ( src , ( DataBufferInt ) buffer , dst . getRaster ( ) ) ; } else { ImplConvertRaster_MT . planarToBuffered_F32 ( src , dst ) ; } dst . setRGB ( 0 , 0 , dst . getRGB ( 0 , 0 ) ) ; } catch ( java . security . AccessControlException e ) { ImplConvertRaster_MT . planarToBuffered_F32 ( src , dst ) ; } } else { try { if ( buffer . getDataType ( ) == DataBuffer . TYPE_BYTE && isKnownByteFormat ( dst ) ) { ImplConvertRaster . planarToBuffered_F32 ( src , ( DataBufferByte ) buffer , dst . getRaster ( ) ) ; } else if ( buffer . getDataType ( ) == DataBuffer . TYPE_INT ) { ImplConvertRaster . planarToBuffered_F32 ( src , ( DataBufferInt ) buffer , dst . getRaster ( ) ) ; } else { ImplConvertRaster . planarToBuffered_F32 ( src , dst ) ; } dst . setRGB ( 0 , 0 , dst . getRGB ( 0 , 0 ) ) ; } catch ( java . security . AccessControlException e ) { ImplConvertRaster . planarToBuffered_F32 ( src , dst ) ; } } }
A faster convert that works directly with a specific raster