Skip to content
Snippets Groups Projects
Commit a557eee4 authored by Céline  TREBEAU's avatar Céline TREBEAU
Browse files

bug fix : wrong variable

parent d4c8b4a2
No related branches found
No related tags found
2 merge requests!47Feature : Multi-channel and Binning,!41Resolve "Consider rescaling (binning) large images"
......@@ -43,48 +43,48 @@ public class ProjectionParameters
{
this.delta = delta;
this.offset = delta;
this.offset = offset;
this.projectionMethod = projectionMethod;
}
/**
* Checks if the delta value is superior or equal to zero and throws an {@link DataValidationException} otherwise.
* @param value the delta value choose by the user. //TODO javadoc : extracted volume defined as delta x 2 + 1
* @throws DataValidationException - if the value is under zero.
*/
private void deltaValidationCheck( int value ) throws DataValidationException
{
if ( value < 0 )
{
throw new DataValidationException( "The value of parameter Delta has to be superior to zero !" );
}
}
/**
*
* @param projectionMethod the method choose to projection the extracted surface.
* @throws DataValidationException if the method is not implemented (implemented methods are MIP, Mean, Median and MinIP).
*/
private void projectionMethodValidationCheck( String projectionMethod ) throws DataValidationException
{
if ( ! projectionMethod.equals( "MIP" ) && ! projectionMethod.equals( "Mean" ) && ! projectionMethod.equals( "MinIP" ) && ! projectionMethod.equals( "Median" ) )
{
throw new DataValidationException( String.format( "The method %s is not implemented in Zellige !", projectionMethod ) );
}
}
/**
* Checks the validity of both parameters.
*
* @param delta the extracted stack parameters
* @param projectionMethod the method choose to projection the extracted surface.
* @throws DataValidationException if at least one parameter is not valid.
*/
private void projectionParametersValidationCheck( int delta, String projectionMethod ) throws DataValidationException
{
deltaValidationCheck( delta );
projectionMethodValidationCheck( projectionMethod );
}
// /**
// * Checks if the delta value is superior or equal to zero and throws an {@link DataValidationException} otherwise.
// * @param value the delta value choose by the user. //TODO javadoc : extracted volume defined as delta x 2 + 1
// * @throws DataValidationException - if the value is under zero.
// */
// private void deltaValidationCheck( int value ) throws DataValidationException
// {
// if ( value < 0 )
// {
// throw new DataValidationException( "The value of parameter Delta has to be superior to zero !" );
// }
// }
//
// /**
// *
// * @param projectionMethod the method choose to projection the extracted surface.
// * @throws DataValidationException if the method is not implemented (implemented methods are MIP, Mean, Median and MinIP).
// */
// private void projectionMethodValidationCheck( String projectionMethod ) throws DataValidationException
// {
// if ( ! projectionMethod.equals( "MIP" ) && ! projectionMethod.equals( "Mean" ) && ! projectionMethod.equals( "MinIP" ) && ! projectionMethod.equals( "Median" ) )
// {
// throw new DataValidationException( String.format( "The method %s is not implemented in Zellige !", projectionMethod ) );
// }
// }
//
// /**
// * Checks the validity of both parameters.
// *
// * @param delta the extracted stack parameters
// * @param projectionMethod the method choose to projection the extracted surface.
// * @throws DataValidationException if at least one parameter is not valid.
// */
// private void projectionParametersValidationCheck( int delta, String projectionMethod ) throws DataValidationException
// {
// deltaValidationCheck( delta );
// projectionMethodValidationCheck( projectionMethod );
// }
public int getDelta()
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment