d00e194ba58a8280a65b00ed309cc094e9ae1210,cellprofiler/modules/measureimageareaoccupied.py,MeasureImageAreaOccupied,measure_objects,#MeasureImageAreaOccupied#Any#Any#,270

Before Change



        m.add_image_measurement(
            F_AREA_OCCUPIED % operand.operand_objects.value,
            numpy.array([area_occupied], dtype=float)
        )

        m.add_image_measurement(

After Change


            perimeter = numpy.sum([numpy.round(region["perimeter"]) for region in region_properties])

        measurements = workspace.measurements
        pipeline = workspace.pipeline

        self._add_image_measurement(
            operand.operand_objects.value,
            F_VOLUME_OCCUPIED if pipeline.volumetric() else F_AREA_OCCUPIED,
            area_occupied,
            measurements
        )

        self._add_image_measurement(
            operand.operand_objects.value,
            F_SURFACE_AREA if pipeline.volumetric() else F_PERIMETER,
            perimeter,
            measurements
        )

        self._add_image_measurement(
            operand.operand_objects.value,
            F_TOTAL_VOLUME if pipeline.volumetric() else F_TOTAL_AREA,
            total_area,
            measurements
        )
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: CellProfiler/CellProfiler
Commit Name: d00e194ba58a8280a65b00ed309cc094e9ae1210
Time: 2018-02-07
Author: mcquin@broadinstitute.org
File Name: cellprofiler/modules/measureimageareaoccupied.py
Class Name: MeasureImageAreaOccupied
Method Name: measure_objects


Project Name: CellProfiler/CellProfiler
Commit Name: d00e194ba58a8280a65b00ed309cc094e9ae1210
Time: 2018-02-07
Author: mcquin@broadinstitute.org
File Name: cellprofiler/modules/measureimageareaoccupied.py
Class Name: MeasureImageAreaOccupied
Method Name: measure_images


Project Name: CellProfiler/CellProfiler
Commit Name: 7d16556cb9635ffede06db54c883f0be9dbf9f70
Time: 2017-08-21
Author: mcquin@users.noreply.github.com
File Name: cellprofiler/modules/measuretexture.py
Class Name: MeasureTexture
Method Name: get_measurement_columns


Project Name: CellProfiler/CellProfiler
Commit Name: d00e194ba58a8280a65b00ed309cc094e9ae1210
Time: 2018-02-07
Author: mcquin@broadinstitute.org
File Name: cellprofiler/modules/measureimageareaoccupied.py
Class Name: MeasureImageAreaOccupied
Method Name: measure_objects