У меня есть блок изображений продуктов, которые мы получили от клиента. Каждый образ продукта представляет собой картину чего-то, и он был взят на белом фоне. Я хотел бы обрезать все окружающие части изображения, но оставить только продукт посередине. Возможно ли это?
В качестве примера: [http://www.5dnet.de/media/catalog/product/d/r/dress_shoes_5.jpg][1]
Я не хочу, чтобы все белые пиксели удалялись, однако я хочу, чтобы изображение обрезалось так, чтобы самая верхняя строка пикселей содержала один небелый пиксель, левая вертикальная строка пикселей содержала один небелый пиксель, самая нижняя горизонтальная строка пикселей содержит один небелый пиксель и т.д.
Код в С# или VB.net будет оценен.